Instructions to use cortexso/opencoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cortexso/opencoder with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cortexso/opencoder", filename="opencoder-8b-instruct-q2_k.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use cortexso/opencoder with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cortexso/opencoder:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/opencoder:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cortexso/opencoder:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/opencoder: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 cortexso/opencoder:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf cortexso/opencoder: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 cortexso/opencoder:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf cortexso/opencoder:Q4_K_M
Use Docker
docker model run hf.co/cortexso/opencoder:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use cortexso/opencoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cortexso/opencoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cortexso/opencoder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cortexso/opencoder:Q4_K_M
- Ollama
How to use cortexso/opencoder with Ollama:
ollama run hf.co/cortexso/opencoder:Q4_K_M
- Unsloth Studio
How to use cortexso/opencoder 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 cortexso/opencoder 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 cortexso/opencoder to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cortexso/opencoder to start chatting
- Docker Model Runner
How to use cortexso/opencoder with Docker Model Runner:
docker model run hf.co/cortexso/opencoder:Q4_K_M
- Lemonade
How to use cortexso/opencoder with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cortexso/opencoder:Q4_K_M
Run and chat with the model
lemonade run user.opencoder-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +10 -0
- opencoder-8b-instruct-q2_k.gguf +3 -0
- opencoder-8b-instruct-q3_k_l.gguf +3 -0
- opencoder-8b-instruct-q3_k_m.gguf +3 -0
- opencoder-8b-instruct-q3_k_s.gguf +3 -0
- opencoder-8b-instruct-q4_k_m.gguf +3 -0
- opencoder-8b-instruct-q4_k_s.gguf +3 -0
- opencoder-8b-instruct-q5_k_m.gguf +3 -0
- opencoder-8b-instruct-q5_k_s.gguf +3 -0
- opencoder-8b-instruct-q6_k.gguf +3 -0
- opencoder-8b-instruct-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
opencoder-8b-instruct-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
opencoder-8b-instruct-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
opencoder-8b-instruct-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
opencoder-8b-instruct-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
opencoder-8b-instruct-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
opencoder-8b-instruct-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
opencoder-8b-instruct-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
opencoder-8b-instruct-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
opencoder-8b-instruct-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
opencoder-8b-instruct-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
opencoder-8b-instruct-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e6b112675cfb493c1d8183ca1267b5217a3bcb91126208508c352c65ffc8e63
|
| 3 |
+
size 3024807712
|
opencoder-8b-instruct-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db4fab23e9904bfb9ff3233806e3bbbee227f631bf3c0ad66596f57c82a44119
|
| 3 |
+
size 4154480416
|
opencoder-8b-instruct-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff0a69d7f2238026d9d048cde2d2143c89f3832fc6edcd5c21da910bc3fb7505
|
| 3 |
+
size 3851441952
|
opencoder-8b-instruct-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a90fe55b3c98949301d0ac3c4606ba36accc89e1ef255ab737de4247c99e53ed
|
| 3 |
+
size 3497023264
|
opencoder-8b-instruct-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae3fc0e75b900d18a7b316b6caa8e1fe5a251cb4c919f159af6cb0679e315ccd
|
| 3 |
+
size 4736059168
|
opencoder-8b-instruct-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96059e5ee8d1cd2de32a54d27e2913946cd4080eebf6e471be7852cb4a925f1e
|
| 3 |
+
size 4507993888
|
opencoder-8b-instruct-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48265fd40388b2da4e431de3656e67d37aa5f45bc733fbed3537544f16d6d012
|
| 3 |
+
size 5532124960
|
opencoder-8b-instruct-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13e49e6f8c0e5767d109767b3ff39af81cbc49fbd0f69414deb553e5815b3c18
|
| 3 |
+
size 5398431520
|
opencoder-8b-instruct-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81e19838612cc2fe8368a806d67d3e75d86ef1ded64d3dd36904f1ce6dbcd031
|
| 3 |
+
size 6377944864
|
opencoder-8b-instruct-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7611732df831c578321cc508f7f51eb077e22a1a620d19df7310dc050d99a157
|
| 3 |
+
size 8259983136
|