Instructions to use TobDeBer/myContainers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use TobDeBer/myContainers with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="TobDeBer/myContainers", filename="arco_BE8.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TobDeBer/myContainers with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf TobDeBer/myContainers # Run inference directly in the terminal: llama-cli -hf TobDeBer/myContainers
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf TobDeBer/myContainers # Run inference directly in the terminal: llama-cli -hf TobDeBer/myContainers
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf TobDeBer/myContainers # Run inference directly in the terminal: ./llama-cli -hf TobDeBer/myContainers
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf TobDeBer/myContainers # Run inference directly in the terminal: ./build/bin/llama-cli -hf TobDeBer/myContainers
Use Docker
docker model run hf.co/TobDeBer/myContainers
- LM Studio
- Jan
- Ollama
How to use TobDeBer/myContainers with Ollama:
ollama run hf.co/TobDeBer/myContainers
- Unsloth Studio
How to use TobDeBer/myContainers with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TobDeBer/myContainers to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TobDeBer/myContainers to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TobDeBer/myContainers to start chatting
- Docker Model Runner
How to use TobDeBer/myContainers with Docker Model Runner:
docker model run hf.co/TobDeBer/myContainers
- Lemonade
How to use TobDeBer/myContainers with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TobDeBer/myContainers
Run and chat with the model
lemonade run user.myContainers-{{QUANT_TAG}}List all available models
lemonade list
Tob De Ber commited on
Commit ·
a796f0d
1
Parent(s): c3d6e83
add libraries to slim container
Browse files- build_slim.sh +2 -0
- slim/Dockerfile +2 -1
build_slim.sh
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
cp llama-server slim/
|
|
|
|
| 2 |
podman build --squash-all --tag bookworm:server slim
|
| 3 |
podman image prune -f
|
| 4 |
podman save localhost/bookworm:server >server.tar
|
| 5 |
time xz -6 -T0 server.tar
|
| 6 |
rm slim/llama-server
|
|
|
|
| 7 |
|
|
|
|
| 1 |
cp llama-server slim/
|
| 2 |
+
cp /lib/x86_64-linux-gnu/libgomp.so.1 slim/
|
| 3 |
podman build --squash-all --tag bookworm:server slim
|
| 4 |
podman image prune -f
|
| 5 |
podman save localhost/bookworm:server >server.tar
|
| 6 |
time xz -6 -T0 server.tar
|
| 7 |
rm slim/llama-server
|
| 8 |
+
rm slim/libgomp.so.1
|
| 9 |
|
slim/Dockerfile
CHANGED
|
@@ -7,6 +7,7 @@ FROM debian:bookworm-slim
|
|
| 7 |
#RUN cp llama.cpp/llama-server .
|
| 8 |
#RUN rm -rf llama.cpp/
|
| 9 |
|
| 10 |
-
COPY
|
|
|
|
| 11 |
|
| 12 |
CMD ["sleep", " infinity"]
|
|
|
|
| 7 |
#RUN cp llama.cpp/llama-server .
|
| 8 |
#RUN rm -rf llama.cpp/
|
| 9 |
|
| 10 |
+
COPY llama-server .
|
| 11 |
+
COPY libgomp.so.1 /lib/x86_64-linux-gnu/libgomp.so.1
|
| 12 |
|
| 13 |
CMD ["sleep", " infinity"]
|