Instructions to use prithivMLmods/OpenCoder-1.5B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/OpenCoder-1.5B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/OpenCoder-1.5B-Instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/OpenCoder-1.5B-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use prithivMLmods/OpenCoder-1.5B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/OpenCoder-1.5B-Instruct-GGUF", filename="opencoder-1.5b-instruct-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 prithivMLmods/OpenCoder-1.5B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/OpenCoder-1.5B-Instruct-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 prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/OpenCoder-1.5B-Instruct-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 prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/OpenCoder-1.5B-Instruct-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 prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/OpenCoder-1.5B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/OpenCoder-1.5B-Instruct-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": "prithivMLmods/OpenCoder-1.5B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/OpenCoder-1.5B-Instruct-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 "prithivMLmods/OpenCoder-1.5B-Instruct-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": "prithivMLmods/OpenCoder-1.5B-Instruct-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 "prithivMLmods/OpenCoder-1.5B-Instruct-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": "prithivMLmods/OpenCoder-1.5B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use prithivMLmods/OpenCoder-1.5B-Instruct-GGUF with Ollama:
ollama run hf.co/prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M
- Unsloth Studio new
How to use prithivMLmods/OpenCoder-1.5B-Instruct-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 prithivMLmods/OpenCoder-1.5B-Instruct-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 prithivMLmods/OpenCoder-1.5B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/OpenCoder-1.5B-Instruct-GGUF to start chatting
- Docker Model Runner
How to use prithivMLmods/OpenCoder-1.5B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/OpenCoder-1.5B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/OpenCoder-1.5B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.OpenCoder-1.5B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
Upload 12 files
Browse files- .gitattributes +12 -0
- opencoder-1.5b-instruct-q2_k.gguf +3 -0
- opencoder-1.5b-instruct-q3_k_l.gguf +3 -0
- opencoder-1.5b-instruct-q3_k_m.gguf +3 -0
- opencoder-1.5b-instruct-q3_k_s.gguf +3 -0
- opencoder-1.5b-instruct-q4_0.gguf +3 -0
- opencoder-1.5b-instruct-q4_k_m.gguf +3 -0
- opencoder-1.5b-instruct-q4_k_s.gguf +3 -0
- opencoder-1.5b-instruct-q5_0.gguf +3 -0
- opencoder-1.5b-instruct-q5_k_m.gguf +3 -0
- opencoder-1.5b-instruct-q5_k_s.gguf +3 -0
- opencoder-1.5b-instruct-q6_k.gguf +3 -0
- opencoder-1.5b-instruct-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ 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-1.5b-instruct-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
opencoder-1.5b-instruct-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
opencoder-1.5b-instruct-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
opencoder-1.5b-instruct-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
opencoder-1.5b-instruct-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
opencoder-1.5b-instruct-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
opencoder-1.5b-instruct-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
opencoder-1.5b-instruct-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
opencoder-1.5b-instruct-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
opencoder-1.5b-instruct-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
opencoder-1.5b-instruct-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
opencoder-1.5b-instruct-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
opencoder-1.5b-instruct-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:539c8f15f36c65dc816e2377c6b8d53c6c04855234fcaeec205bff15810153b3
|
| 3 |
+
size 1138904160
|
opencoder-1.5b-instruct-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3e17ccf00ab1a03bb9cf236e5f0273f2035eb7f1a10a976a243deb441697afc
|
| 3 |
+
size 1269218400
|
opencoder-1.5b-instruct-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfbfa4e1a5fc4979fbf3a27701e3efc3a8776164d91a9bb723a96eb0b2ebe989
|
| 3 |
+
size 1215225440
|
opencoder-1.5b-instruct-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:088200176eba2ae8cc9a365eedb297b6c538a8f5dae981a09a05729e99249f05
|
| 3 |
+
size 1138904160
|
opencoder-1.5b-instruct-q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:252c6ff24a2a9b34b83bb0f84fd109852820e0839d50185e7d890603545e205f
|
| 3 |
+
size 1182772320
|
opencoder-1.5b-instruct-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66cf61faeed2687808d46035977601d0c9c4064644ffc379b331a7a508f080f5
|
| 3 |
+
size 1417775200
|
opencoder-1.5b-instruct-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c198ef3edf95c6b191ea11f421fc48a16cb9bc3174bbe879329c13642dddf139
|
| 3 |
+
size 1359033440
|
opencoder-1.5b-instruct-q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6c9689febd1f7b99073cbc68666edb6d007659d91c94aec6315da8bea14d982
|
| 3 |
+
size 1393905760
|
opencoder-1.5b-instruct-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62f461492d95f4e87f88b0ae4024e826c7b12cb12318b5ea465d28119c8c484d
|
| 3 |
+
size 1519578720
|
opencoder-1.5b-instruct-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40bf1ea919e10e351664534da4603c72d5ac33d968ff717965902407d2f4b251
|
| 3 |
+
size 1478828640
|
opencoder-1.5b-instruct-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db80a019959eea04691da8e38cb5547f116009f4cf97a9fc96ff7a0a3a80f0b9
|
| 3 |
+
size 1947311200
|
opencoder-1.5b-instruct-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c4b2bc454f95dcfd5001cf9cf65d08970ecb7a333c015139d9eceb377cef3a2
|
| 3 |
+
size 2027306080
|