Instructions to use GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF 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 GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16 # Run inference directly in the terminal: llama cli -hf GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16 # Run inference directly in the terminal: llama cli -hf GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16
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 GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16
Use Docker
docker model run hf.co/GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16
- SGLang
How to use GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF 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 "GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF" \ --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": "GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF", "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 "GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF" \ --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": "GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF with Ollama:
ollama run hf.co/GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16
- Unsloth Desktop
- Docker Model Runner
How to use GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF with Docker Model Runner:
docker model run hf.co/GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16
- Lemonade
How to use GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF:F16
Run and chat with the model
lemonade run user.Yi-1.5-9B-Chat-16K-GGUF-F16
List all available models
lemonade list
- Atomic Chat
This is a model that is assumed to perform well, but may require more testing and user feedback. Be aware, only models featured within the GUI of GPT4All, are curated and officially supported by Nomic. Use at your own risk.
About
- Static quants of https://huggingface.co/01-ai/Yi-1.5-9B-Chat-16K
- Quantized by ThiloteE with llama.cpp commit c3776ca
These quants were created with a customized configuration that have been proven to not cause visible end of string (eos) tokens during inference with GPT4All. The config.json, generation_config.json and tokenizer_config.json differ from the original configuration as can be found in the original model's repository at the time of creation of these quants.
Prompt Template (for GPT4All)
System Prompt:
<|im_start|>system
Below is an instruction that describes a task. Write a response that appropriately completes the request.<|im_end|>
Chat Template:
<|im_start|>user
%1<|im_end|>
<|im_start|>assistant
%2<|im_end|>
Do not miss the newlines at the end!
Context Length
16384
Provided Quants
About GGUF
If you are unsure how to use GGUF files, refer to one of TheBloke's READMEs for more details, including on how to concatenate multi-part files.
Here is a handy graph by ikawrakow comparing some quant types (lower is better):
And here are Artefact2's thoughts on the matter: https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9
Thanks
I thank Mradermacher and TheBloke for Inspiration to this model card and their contributions to open source. I thank 3Simplex for everything. Shoutout to the GPT4All and llama.cpp communities :-)
Original Model card:
license: apache-2.0
π GitHub β’
πΎ Discord β’
π€ Twitter β’
π¬ WeChat
π Paper β’
πͺ Tech Blog β’
π FAQ β’
π Learning Hub
Intro
Yi-1.5 is an upgraded version of Yi. It is continuously pre-trained on Yi with a high-quality corpus of 500B tokens and fine-tuned on 3M diverse fine-tuning samples.
Compared with Yi, Yi-1.5 delivers stronger performance in coding, math, reasoning, and instruction-following capability, while still maintaining excellent capabilities in language understanding, commonsense reasoning, and reading comprehension.
| Model | Context Length | Pre-trained Tokens |
|---|---|---|
| Yi-1.5 | 4K, 16K, 32K | 3.6T |
Models
Chat models
Name Download Yi-1.5-34B-Chat β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Yi-1.5-34B-Chat-16K β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Yi-1.5-9B-Chat β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Yi-1.5-9B-Chat-16K β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Yi-1.5-6B-Chat β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Base models
Name Download Yi-1.5-34B β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Yi-1.5-34B-32K β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Yi-1.5-9B β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Yi-1.5-9B-32K β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel Yi-1.5-6B β’ π€ Hugging Face β’ π€ ModelScope β’ π£ wisemodel
Benchmarks
Chat models
Yi-1.5-34B-Chat is on par with or excels beyond larger models in most benchmarks.
Yi-1.5-9B-Chat is the top performer among similarly sized open-source models.
Base models
Yi-1.5-34B is on par with or excels beyond larger models in some benchmarks.
Yi-1.5-9B is the top performer among similarly sized open-source models.
Quick Start
For getting up and running with Yi-1.5 models quickly, see README.
- Downloads last month
- 595
4-bit
16-bit
Model tree for GPT4All-Community/Yi-1.5-9B-Chat-16K-GGUF
Base model
01-ai/Yi-1.5-9B-Chat-16K



