Instructions to use prithivMLmods/OpenCoder-1.5B-Base-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/OpenCoder-1.5B-Base-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/OpenCoder-1.5B-Base-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-Base-GGUF", dtype="auto") - llama-cpp-python
How to use prithivMLmods/OpenCoder-1.5B-Base-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-Base-GGUF", filename="opencoder-1.5b-base-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 prithivMLmods/OpenCoder-1.5B-Base-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-Base-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/OpenCoder-1.5B-Base-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-Base-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/OpenCoder-1.5B-Base-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-Base-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/OpenCoder-1.5B-Base-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-Base-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/OpenCoder-1.5B-Base-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/OpenCoder-1.5B-Base-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/OpenCoder-1.5B-Base-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-Base-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-Base-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/OpenCoder-1.5B-Base-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/OpenCoder-1.5B-Base-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-Base-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-Base-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-Base-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-Base-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use prithivMLmods/OpenCoder-1.5B-Base-GGUF with Ollama:
ollama run hf.co/prithivMLmods/OpenCoder-1.5B-Base-GGUF:Q4_K_M
- Unsloth Studio
How to use prithivMLmods/OpenCoder-1.5B-Base-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-Base-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-Base-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-Base-GGUF to start chatting
- Docker Model Runner
How to use prithivMLmods/OpenCoder-1.5B-Base-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/OpenCoder-1.5B-Base-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/OpenCoder-1.5B-Base-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/OpenCoder-1.5B-Base-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.OpenCoder-1.5B-Base-GGUF-Q4_K_M
List all available models
lemonade list
Upload 12 files
Browse files- .gitattributes +12 -0
- opencoder-1.5b-base-q2_k.gguf +3 -0
- opencoder-1.5b-base-q3_k_l.gguf +3 -0
- opencoder-1.5b-base-q3_k_m.gguf +3 -0
- opencoder-1.5b-base-q3_k_s.gguf +3 -0
- opencoder-1.5b-base-q4_0.gguf +3 -0
- opencoder-1.5b-base-q4_k_m.gguf +3 -0
- opencoder-1.5b-base-q4_k_s.gguf +3 -0
- opencoder-1.5b-base-q5_0.gguf +3 -0
- opencoder-1.5b-base-q5_k_m.gguf +3 -0
- opencoder-1.5b-base-q5_k_s.gguf +3 -0
- opencoder-1.5b-base-q6_k.gguf +3 -0
- opencoder-1.5b-base-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-base-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
opencoder-1.5b-base-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
opencoder-1.5b-base-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
opencoder-1.5b-base-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
opencoder-1.5b-base-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
opencoder-1.5b-base-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
opencoder-1.5b-base-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
opencoder-1.5b-base-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
opencoder-1.5b-base-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
opencoder-1.5b-base-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
opencoder-1.5b-base-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
opencoder-1.5b-base-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
opencoder-1.5b-base-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2061e9f17efa95a4369a4a800f55ed5de068e80daf087d973818c67fcb06447c
|
| 3 |
+
size 1138903744
|
opencoder-1.5b-base-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5cf63718033b7c824d2dbfd16c6f779031f82d722369f430436fc82dee9ff634
|
| 3 |
+
size 1269217984
|
opencoder-1.5b-base-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9caccdfedd74181ba8518370017b395917f81063f272e89e14e2b92119d5acf7
|
| 3 |
+
size 1215225024
|
opencoder-1.5b-base-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f87e263bf6d373f2b06d6910afdd0e19bab59955397f7ef0adcbafe2039af33
|
| 3 |
+
size 1138903744
|
opencoder-1.5b-base-q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d5af69f3a9f3bc51bf13966e453ff49e77cdf06b54c883a4cb0109d73c5e58a
|
| 3 |
+
size 1182771904
|
opencoder-1.5b-base-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ca048d6feecddf4febaf44b6c98c584f07cdaa9f1247890ed551a77fa1304a4
|
| 3 |
+
size 1417774784
|
opencoder-1.5b-base-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b73a514e1524fa214603a649a569a3dd62a623cbb0a4d70ceff1806a3fe43ea
|
| 3 |
+
size 1359033024
|
opencoder-1.5b-base-q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6adb783a03c13f6dad26bbb118fe963b4465dfb2a44229d27a157c28dd04dea
|
| 3 |
+
size 1393905344
|
opencoder-1.5b-base-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c108339bb8d10e380d99d6c3295e202ca3365d4778fbf85a5048ed91d6b1bed
|
| 3 |
+
size 1519578304
|
opencoder-1.5b-base-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5903159c842a0cd87729f2fba023f475b0731d1a357c20d8b3872519c7f5cf10
|
| 3 |
+
size 1478828224
|
opencoder-1.5b-base-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bbe28c7cb34e729ace738f81fc23ba821958c562bba4dab3349e200b2b27f235
|
| 3 |
+
size 1947310784
|
opencoder-1.5b-base-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5599b0fb00847485c8e173db5aa106d7cdba44465bd6c7afd3174881949637c5
|
| 3 |
+
size 2027305664
|