Instructions to use hoanghai2110/zi-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hoanghai2110/zi-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hoanghai2110/zi-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hoanghai2110/zi-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use hoanghai2110/zi-1 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf hoanghai2110/zi-1:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf hoanghai2110/zi-1:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hoanghai2110/zi-1:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf hoanghai2110/zi-1:UD-Q4_K_XL
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf hoanghai2110/zi-1:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama cli -hf hoanghai2110/zi-1:UD-Q4_K_XL
Use Docker
docker model run hf.co/hoanghai2110/zi-1:UD-Q4_K_XL
- Llama new
- LM Studio
- Jan
- vLLM
How to use hoanghai2110/zi-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hoanghai2110/zi-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hoanghai2110/zi-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hoanghai2110/zi-1:UD-Q4_K_XL
- SGLang
How to use hoanghai2110/zi-1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "hoanghai2110/zi-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hoanghai2110/zi-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "hoanghai2110/zi-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hoanghai2110/zi-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use hoanghai2110/zi-1 with Ollama:
ollama run hf.co/hoanghai2110/zi-1:UD-Q4_K_XL
- Unsloth Desktop
- Docker Model Runner
How to use hoanghai2110/zi-1 with Docker Model Runner:
docker model run hf.co/hoanghai2110/zi-1:UD-Q4_K_XL
- Lemonade
How to use hoanghai2110/zi-1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hoanghai2110/zi-1:UD-Q4_K_XL
Run and chat with the model
lemonade run user.zi-1-UD-Q4_K_XL
List all available models
lemonade list
- Atomic Chat
Ctrl+K
- 2.82 kB
- 1.48 kB
- 97 Bytes
- 38.1 kB
- 543 MB xet
- 242 MB xet
- 241 MB xet
- 237 MB xet
- 237 MB xet
- 242 MB xet
- 237 MB xet
- 242 MB xet
- 248 MB xet
- 253 MB xet
- 250 MB xet
- 260 MB xet
- 258 MB xet
- 283 MB xet
- 292 MB xet
- 183 MB xet
- 180 MB xet
- 185 MB xet
- 238 MB xet
- 243 MB xet
- 254 MB xet
- 260 MB xet
- 286 MB xet
- 471 MB xet
- 471 kB xet
- 202 Bytes
- 476 Bytes