Skip to content

Commit 2847147

Browse files
committed
Merge branch 'master' into layla-build
2 parents 1b9a949 + 079feab commit 2847147

File tree

664 files changed

+92035
-41911
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

664 files changed

+92035
-41911
lines changed

.devops/cann.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ARG CANN_BASE_IMAGE=quay.io/ascend/cann:8.3.rc2-${CHIP_TYPE}-openeuler24.03-py3.
1313
FROM ${CANN_BASE_IMAGE} AS build
1414

1515
# -- Install build dependencies --
16-
RUN yum install -y gcc g++ cmake make git libcurl-devel python3 python3-pip && \
16+
RUN yum install -y gcc g++ cmake make git openssl-devel python3 python3-pip && \
1717
yum clean all && \
1818
rm -rf /var/cache/yum
1919

@@ -42,6 +42,7 @@ RUN source /usr/local/Ascend/ascend-toolkit/set_env.sh --force \
4242
-DGGML_CANN=ON \
4343
-DCMAKE_BUILD_TYPE=Release \
4444
-DSOC_TYPE=ascend${CHIP_TYPE} \
45+
-DUSE_ACL_GRAPH=ON \
4546
. && \
4647
cmake --build build --config Release -j$(nproc)
4748

.devops/cpu.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM ubuntu:$UBUNTU_VERSION AS build
55
ARG TARGETARCH
66

77
RUN apt-get update && \
8-
apt-get install -y build-essential git cmake libcurl4-openssl-dev
8+
apt-get install -y build-essential git cmake libssl-dev
99

1010
WORKDIR /app
1111

.devops/cuda-new.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FROM ${BASE_CUDA_DEV_CONTAINER} AS build
1212
ARG CUDA_DOCKER_ARCH=default
1313

1414
RUN apt-get update && \
15-
apt-get install -y build-essential cmake python3 python3-pip git libcurl4-openssl-dev libgomp1
15+
apt-get install -y build-essential cmake python3 python3-pip git libssl-dev libgomp1
1616

1717
WORKDIR /app
1818

.devops/cuda.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FROM ${BASE_CUDA_DEV_CONTAINER} AS build
1212
ARG CUDA_DOCKER_ARCH=default
1313

1414
RUN apt-get update && \
15-
apt-get install -y build-essential cmake python3 python3-pip git libcurl4-openssl-dev libgomp1
15+
apt-get install -y build-essential cmake python3 python3-pip git libssl-dev libgomp1
1616

1717
WORKDIR /app
1818

.devops/intel.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FROM intel/deep-learning-essentials:$ONEAPI_VERSION AS build
66

77
ARG GGML_SYCL_F16=OFF
88
RUN apt-get update && \
9-
apt-get install -y git libcurl4-openssl-dev
9+
apt-get install -y git libssl-dev
1010

1111
WORKDIR /app
1212

.devops/llama-cli-cann.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /app
66

77
COPY . .
88

9-
RUN yum install -y gcc g++ cmake make libcurl-devel
9+
RUN yum install -y gcc g++ cmake make openssl-devel
1010
ENV ASCEND_TOOLKIT_HOME=/usr/local/Ascend/ascend-toolkit/latest
1111
ENV LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:$LIBRARY_PATH
1212
ENV LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/lib64/plugin/opskernel:${ASCEND_TOOLKIT_HOME}/lib64/plugin/nnengine:${ASCEND_TOOLKIT_HOME}/opp/built-in/op_impl/ai_core/tbe/op_tiling:${LD_LIBRARY_PATH}

.devops/musa.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN apt-get update && \
1818
python3 \
1919
python3-pip \
2020
git \
21-
libcurl4-openssl-dev \
21+
libssl-dev \
2222
libgomp1
2323

2424
WORKDIR /app

.devops/nix/nixpkgs-instances.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# the module `{ pkgs ... }: { /* config */ }` implicitly uses
55
# `_module.args.pkgs` (defined in this case by flake-parts).
66
perSystem =
7-
{ system, ... }:
7+
{ lib, system, ... }:
88
{
99
_module.args = {
1010
# Note: bringing up https://zimbatm.com/notes/1000-instances-of-nixpkgs
@@ -33,7 +33,7 @@
3333
"CUDA EULA"
3434
"cuDNN EULA"
3535
]
36-
) (p.meta.licenses or [ p.meta.license ]);
36+
) (p.meta.licenses or (lib.toList p.meta.license));
3737
};
3838
# Ensure dependencies use ROCm consistently
3939
pkgsRocm = import inputs.nixpkgs {

.devops/nix/package-gguf-py.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
llamaVersion,
44
numpy,
55
tqdm,
6+
requests,
67
sentencepiece,
78
pyyaml,
89
poetry-core,
@@ -20,6 +21,7 @@ buildPythonPackage {
2021
tqdm
2122
sentencepiece
2223
pyyaml
24+
requests
2325
];
2426
src = lib.cleanSource ../../gguf-py;
2527
pythonImportsCheck = [

.devops/nix/package.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
useMpi ? false,
3333
useRocm ? config.rocmSupport,
3434
rocmGpuTargets ? builtins.concatStringsSep ";" rocmPackages.clr.gpuTargets,
35-
enableCurl ? true,
3635
useVulkan ? false,
3736
useRpc ? false,
3837
llamaVersion ? "0.0.0", # Arbitrary version, substituted by the flake
@@ -160,15 +159,13 @@ effectiveStdenv.mkDerivation (finalAttrs: {
160159
++ optionals useMpi [ mpi ]
161160
++ optionals useRocm rocmBuildInputs
162161
++ optionals useBlas [ blas ]
163-
++ optionals useVulkan vulkanBuildInputs
164-
++ optionals enableCurl [ curl ];
162+
++ optionals useVulkan vulkanBuildInputs;
165163

166164
cmakeFlags =
167165
[
168166
(cmakeBool "LLAMA_BUILD_SERVER" true)
169167
(cmakeBool "BUILD_SHARED_LIBS" (!enableStatic))
170168
(cmakeBool "CMAKE_SKIP_BUILD_RPATH" true)
171-
(cmakeBool "LLAMA_CURL" enableCurl)
172169
(cmakeBool "GGML_NATIVE" false)
173170
(cmakeBool "GGML_BLAS" useBlas)
174171
(cmakeBool "GGML_CUDA" useCuda)

0 commit comments

Comments
 (0)