Instructions to use haijian06/Yi-Coder-9B-Chat-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use haijian06/Yi-Coder-9B-Chat-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="haijian06/Yi-Coder-9B-Chat-GGUF", filename="Yi-Coder-9B-Chat-BF16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use haijian06/Yi-Coder-9B-Chat-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M
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 haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M
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 haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M
Use Docker
docker model run hf.co/haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use haijian06/Yi-Coder-9B-Chat-GGUF with Ollama:
ollama run hf.co/haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M
- Unsloth Studio new
How to use haijian06/Yi-Coder-9B-Chat-GGUF 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 haijian06/Yi-Coder-9B-Chat-GGUF 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 haijian06/Yi-Coder-9B-Chat-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for haijian06/Yi-Coder-9B-Chat-GGUF to start chatting
- Docker Model Runner
How to use haijian06/Yi-Coder-9B-Chat-GGUF with Docker Model Runner:
docker model run hf.co/haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M
- Lemonade
How to use haijian06/Yi-Coder-9B-Chat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull haijian06/Yi-Coder-9B-Chat-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Yi-Coder-9B-Chat-GGUF-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)Yi-Coder-9B-Chat GGUF Model
This repository contains the GGUF version of the Yi-Coder-9B-Chat model. This quantized version allows for efficient inference on a wide range of hardware.
Original model: 01-ai/Yi-Coder-9B-Chat
Model Description
Yi-Coder-9B-Chat is a powerful language model specifically designed for coding tasks and chat interactions. This GGUF version maintains the model's capabilities while offering improved performance and reduced resource requirements.
Usage
You can use this model with popular inference frameworks such as llama.cpp or Ollama. Below are instructions for using the model with llama.cpp.
Using with llama.cpp
Clone and build llama.cpp following their installation instructions.
Download the GGUF model file from this repository.
Run the model using the following command:
cd llama.cpp/build_cuda/bin
./llama-cli -m /path/to/Yi-Coder-9B-Chat-BF16.gguf -n -1 --color -r "User:" --in-prefix " " -i -e -p "User: Hi"
Replace /path/to/Yi-Coder-9B-Chat-BF16.gguf with the actual path to the downloaded model file.
This command starts an interactive session with the model. You can type your prompts after the "User:" prefix.
Using with Ollama
Ollama provides an easy-to-use interface for running large language models. Follow the Ollama documentation to set up and use this model.
License
This model is released under the Apache 2.0 License. Please see the LICENSE file in this repository for full details.
Acknowledgements
This model is based on the Yi-Coder-9B-Chat model. We acknowledge the original creators and contributors of the base model.
Issues and Contributions
If you encounter any issues or have suggestions for improvements, please open an issue in this repository. Contributions are welcome!
Happy coding with Yi-Coder-9B-Chat GGUF!
- Downloads last month
- 97
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="haijian06/Yi-Coder-9B-Chat-GGUF", filename="", )