Instructions to use ciictec/Zhigong-1.6B-Chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ciictec/Zhigong-1.6B-Chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ciictec/Zhigong-1.6B-Chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ciictec/Zhigong-1.6B-Chat") model = AutoModelForCausalLM.from_pretrained("ciictec/Zhigong-1.6B-Chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ciictec/Zhigong-1.6B-Chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ciictec/Zhigong-1.6B-Chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ciictec/Zhigong-1.6B-Chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ciictec/Zhigong-1.6B-Chat
- SGLang
How to use ciictec/Zhigong-1.6B-Chat 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 "ciictec/Zhigong-1.6B-Chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ciictec/Zhigong-1.6B-Chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "ciictec/Zhigong-1.6B-Chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ciictec/Zhigong-1.6B-Chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ciictec/Zhigong-1.6B-Chat with Docker Model Runner:
docker model run hf.co/ciictec/Zhigong-1.6B-Chat
Download tokenizer.model from ciictec/Zhigong-1.6B-Chat: direct link, hf CLI and curl.
- Browser
- Download file 1.63 MB
-
https://huggingface.co/ciictec/Zhigong-1.6B-Chat/resolve/main/tokenizer.model
- Command line
-
hf download hf://ciictec/Zhigong-1.6B-Chat/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/ciictec/Zhigong-1.6B-Chat/resolve/main/tokenizer.model
1.63 MB
- Xet hash:
- 9aafd6c8557e43b8a26f0f67061c4cdcad604049ac3d72cb0deeca948aa0b44b
- Size of remote file:
- 1.63 MB
- SHA256:
- 55d6ce9446bd25523b9a1f8770ddfb993d1341276668404bcd1829c6aef457c8
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.