Instructions to use second-state/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 second-state/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="second-state/Yi-Coder-9B-Chat-GGUF", filename="Yi-Coder-9B-Chat-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use second-state/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 second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/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 second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/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 second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/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 second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use second-state/Yi-Coder-9B-Chat-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "second-state/Yi-Coder-9B-Chat-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": "second-state/Yi-Coder-9B-Chat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M
- Ollama
How to use second-state/Yi-Coder-9B-Chat-GGUF with Ollama:
ollama run hf.co/second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M
- Unsloth Studio new
How to use second-state/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 second-state/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 second-state/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 second-state/Yi-Coder-9B-Chat-GGUF to start chatting
- Docker Model Runner
How to use second-state/Yi-Coder-9B-Chat-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Yi-Coder-9B-Chat-GGUF:Q4_K_M
- Lemonade
How to use second-state/Yi-Coder-9B-Chat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/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
Update models
Browse files- Yi-Coder-9B-Chat-Q2_K.gguf +1 -1
- Yi-Coder-9B-Chat-Q3_K_L.gguf +1 -1
- Yi-Coder-9B-Chat-Q3_K_M.gguf +1 -1
- Yi-Coder-9B-Chat-Q3_K_S.gguf +1 -1
- Yi-Coder-9B-Chat-Q4_0.gguf +1 -1
- Yi-Coder-9B-Chat-Q4_K_M.gguf +1 -1
- Yi-Coder-9B-Chat-Q4_K_S.gguf +1 -1
- Yi-Coder-9B-Chat-Q5_0.gguf +1 -1
- Yi-Coder-9B-Chat-Q5_K_M.gguf +1 -1
- Yi-Coder-9B-Chat-Q5_K_S.gguf +1 -1
- Yi-Coder-9B-Chat-Q6_K.gguf +1 -1
- Yi-Coder-9B-Chat-Q8_0.gguf +1 -1
- Yi-Coder-9B-Chat-f16.gguf +1 -1
- config.json +1 -1
Yi-Coder-9B-Chat-Q2_K.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3354325536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b93cbfd560c31ed63170b97805b9c88b0c3985731072eed94d4f4fe18c3e7a4
|
| 3 |
size 3354325536
|
Yi-Coder-9B-Chat-Q3_K_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4690752032
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7554d8ef4f9913f1873811563db5cb85d4af811b5ca99d523292872c458680e
|
| 3 |
size 4690752032
|
Yi-Coder-9B-Chat-Q3_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4324405792
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:464d5d9079ace90646a8aebb074676df8212e600c8605c000d58aab92ddfe5e9
|
| 3 |
size 4324405792
|
Yi-Coder-9B-Chat-Q3_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3899208224
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82b5ec40c5d754ebf921e6551b50c24cb67e1519771a98fab462b51e0c4ddde9
|
| 3 |
size 3899208224
|
Yi-Coder-9B-Chat-Q4_0.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5036995104
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:671a62bc59bd4296bb5e411e6edeaef74b6613b3e67a33aaabbaeb37649b4a53
|
| 3 |
size 5036995104
|
Yi-Coder-9B-Chat-Q4_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5328957984
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:436d1a32cf83c76bbc37675db0d472e8f7fa66c1f212c48053e1efc4b3d8faa5
|
| 3 |
size 5328957984
|
Yi-Coder-9B-Chat-Q4_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5071860256
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b096b2af0de42c00b31b62dbecf22095af6671a33f02ee1f65576d5434d1593
|
| 3 |
size 5071860256
|
Yi-Coder-9B-Chat-Q5_0.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6107853344
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1242d01cfa2655c5e948e6d2b428c5f5b8ad3d2d406e1641d879245529a83fa
|
| 3 |
size 6107853344
|
Yi-Coder-9B-Chat-Q5_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6258258464
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a687726abd739071d17314e1066d680eb25f23696f7789768953c8e19846de0e
|
| 3 |
size 6258258464
|
Yi-Coder-9B-Chat-Q5_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6107853344
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eed410bcbf0c24ac3784f64074f451e2302ec1a7490a06364e0f5a723e949b5e
|
| 3 |
size 6107853344
|
Yi-Coder-9B-Chat-Q6_K.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7245640224
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:432b7e52d5f2b53bf434bfbc0e3760b0ced128b8f5c0a9a6bf152ff345a32abc
|
| 3 |
size 7245640224
|
Yi-Coder-9B-Chat-Q8_0.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 9383916064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23b4408c9a621bc563ed9f998a7929776ba50f5102ed2c2436b2f917404b05e7
|
| 3 |
size 9383916064
|
Yi-Coder-9B-Chat-f16.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 17661112864
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e5cbceaeb02138bbdfd8d1fc2e28b71abf52d54c01181197d5c856dc8287886
|
| 3 |
size 17661112864
|
config.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
"attention_bias": false,
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 1,
|
| 8 |
-
"eos_token_id":
|
| 9 |
"hidden_act": "silu",
|
| 10 |
"hidden_size": 4096,
|
| 11 |
"initializer_range": 0.02,
|
|
|
|
| 5 |
"attention_bias": false,
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 1,
|
| 8 |
+
"eos_token_id": 7,
|
| 9 |
"hidden_act": "silu",
|
| 10 |
"hidden_size": 4096,
|
| 11 |
"initializer_range": 0.02,
|