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