Text Generation
GGUF
code
llama
quantized
GGUF
quantization
imat
imatrix
static
16bit
8bit
6bit
5bit
4bit
3bit
2bit
1bit
Instructions to use legraphista/Yi-9B-Coder-IMat-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use legraphista/Yi-9B-Coder-IMat-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="legraphista/Yi-9B-Coder-IMat-GGUF", filename="Yi-9B-Coder.BF16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use legraphista/Yi-9B-Coder-IMat-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: llama-cli -hf legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: llama-cli -hf legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
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 legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
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 legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
Use Docker
docker model run hf.co/legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
- LM Studio
- Jan
- vLLM
How to use legraphista/Yi-9B-Coder-IMat-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "legraphista/Yi-9B-Coder-IMat-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "legraphista/Yi-9B-Coder-IMat-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
- Ollama
How to use legraphista/Yi-9B-Coder-IMat-GGUF with Ollama:
ollama run hf.co/legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
- Unsloth Studio new
How to use legraphista/Yi-9B-Coder-IMat-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 legraphista/Yi-9B-Coder-IMat-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 legraphista/Yi-9B-Coder-IMat-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for legraphista/Yi-9B-Coder-IMat-GGUF to start chatting
- Docker Model Runner
How to use legraphista/Yi-9B-Coder-IMat-GGUF with Docker Model Runner:
docker model run hf.co/legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
- Lemonade
How to use legraphista/Yi-9B-Coder-IMat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull legraphista/Yi-9B-Coder-IMat-GGUF:Q4_K_S
Run and chat with the model
lemonade run user.Yi-9B-Coder-IMat-GGUF-Q4_K_S
List all available models
lemonade list
Ctrl+K
This model has 24 files scanned as unsafe.
- 3.05 kB
- 8.53 kB
- 17.7 GB xet
- 17.7 GB xet
- 2.18 GB xet
- 2.01 GB xet
- 3.1 GB xet
- 2.88 GB xet
- 2.71 GB xet
- 2.46 GB xet
- 4.06 GB xet
- 3.91 GB xet
- 3.72 GB xet
- 3.47 GB xet
- 5.05 GB xet
- 4.79 GB xet
- 3.35 GB xet
- 3.12 GB xet
- 4.32 GB xet
- 4.69 GB xet
- 3.9 GB xet
- 5.33 GB xet
- 5.07 GB xet
- 6.26 GB xet
- 6.11 GB xet
- 7.25 GB xet
- 9.38 GB xet
- 6.84 MB xet
- 280 kB
- 10.8 kB