forked from ggerganov/llama.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
130 changed files
with
16,533 additions
and
18,459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG UBUNTU_VERSION=jammy | ||
|
||
FROM ubuntu:$UBUNTU_VERSION as build | ||
|
||
# Install build tools | ||
RUN apt update && apt install -y git build-essential cmake wget | ||
|
||
# Install Vulkan SDK | ||
RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \ | ||
wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list && \ | ||
apt update -y && \ | ||
apt-get install -y vulkan-sdk | ||
|
||
# Build it | ||
WORKDIR /app | ||
COPY . . | ||
RUN mkdir build && \ | ||
cd build && \ | ||
cmake .. -DLLAMA_VULKAN=1 && \ | ||
cmake --build . --config Release --target main | ||
|
||
# Clean up | ||
WORKDIR / | ||
RUN cp /app/build/bin/main /main && \ | ||
rm -rf /app | ||
|
||
ENV LC_ALL=C.utf8 | ||
|
||
ENTRYPOINT [ "/main" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG UBUNTU_VERSION=jammy | ||
|
||
FROM ubuntu:$UBUNTU_VERSION as build | ||
|
||
# Install build tools | ||
RUN apt update && apt install -y git build-essential cmake wget | ||
|
||
# Install Vulkan SDK | ||
RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \ | ||
wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list && \ | ||
apt update -y && \ | ||
apt-get install -y vulkan-sdk | ||
|
||
# Build it | ||
WORKDIR /app | ||
COPY . . | ||
RUN mkdir build && \ | ||
cd build && \ | ||
cmake .. -DLLAMA_VULKAN=1 && \ | ||
cmake --build . --config Release --target server | ||
|
||
# Clean up | ||
WORKDIR / | ||
RUN cp /app/build/bin/server /server && \ | ||
rm -rf /app | ||
|
||
ENV LC_ALL=C.utf8 | ||
|
||
ENTRYPOINT [ "/server" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"Exclude": ["^\\.gitmodules$"], | ||
"Disable": { | ||
"IndentSize": true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[flake8] | ||
max-line-length = 125 | ||
ignore = W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,3 +89,4 @@ examples/jeopardy/results.txt | |
|
||
poetry.lock | ||
poetry.toml | ||
nppBackup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "kompute"] | ||
path = kompute | ||
url = https://github.com/nomic-ai/kompute.git |
Oops, something went wrong.