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
- 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 new
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 ·
256ab9e
1
Parent(s): 35e01a1
slim container
Browse files- build_slim.sh +7 -0
- slim/Dockerfile +12 -0
build_slim.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
slim/Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM debian:bookworm-slim
|
| 2 |
+
#RUN apt-get update && apt-get upgrade
|
| 3 |
+
#RUN apt-get install -y git git-lfs pip cmake python3
|
| 4 |
+
|
| 5 |
+
#RUN git clone https://github.com/ggerganov/llama.cpp.git
|
| 6 |
+
#RUN cd llama.cpp && make -j 32 llama-server
|
| 7 |
+
#RUN cp llama.cpp/llama-server .
|
| 8 |
+
#RUN rm -rf llama.cpp/
|
| 9 |
+
|
| 10 |
+
COPY ../llama-server .
|
| 11 |
+
|
| 12 |
+
CMD ["sleep", " infinity"]
|