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")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/OpenCoder-1.5B-Base-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/OpenCoder-1.5B-Base-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -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 serve -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/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -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
- Llama new
- 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 Desktop
- 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
- Atomic Chat
Upload 12 files
Browse filesFiles changed (13)
- .gitattributes+12
- opencoder-1.5b-base-q2_k.ggufAdded+3
- opencoder-1.5b-base-q3_k_l.ggufAdded+3
- opencoder-1.5b-base-q3_k_m.ggufAdded+3
- opencoder-1.5b-base-q3_k_s.ggufAdded+3
- opencoder-1.5b-base-q4_0.ggufAdded+3
- opencoder-1.5b-base-q4_k_m.ggufAdded+3
- opencoder-1.5b-base-q4_k_s.ggufAdded+3
- opencoder-1.5b-base-q5_0.ggufAdded+3
- opencoder-1.5b-base-q5_k_m.ggufAdded+3
- opencoder-1.5b-base-q5_k_s.ggufAdded+3
- opencoder-1.5b-base-q6_k.ggufAdded+3
- opencoder-1.5b-base-q8_0.ggufAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373839404142434445464732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q2_k.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q4_0.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q5_0.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q6_k.gguf filter=lfs diff=lfs merge=lfs -textopencoder-1.5b-base-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:2061e9f17efa95a4369a4a800f55ed5de068e80daf087d973818c67fcb06447csize 1138903744123version https://git-lfs.github.com/spec/v1oid sha256:5cf63718033b7c824d2dbfd16c6f779031f82d722369f430436fc82dee9ff634size 1269217984123version https://git-lfs.github.com/spec/v1oid sha256:9caccdfedd74181ba8518370017b395917f81063f272e89e14e2b92119d5acf7size 1215225024123version https://git-lfs.github.com/spec/v1oid sha256:3f87e263bf6d373f2b06d6910afdd0e19bab59955397f7ef0adcbafe2039af33size 1138903744123version https://git-lfs.github.com/spec/v1oid sha256:2d5af69f3a9f3bc51bf13966e453ff49e77cdf06b54c883a4cb0109d73c5e58asize 1182771904123version https://git-lfs.github.com/spec/v1oid sha256:0ca048d6feecddf4febaf44b6c98c584f07cdaa9f1247890ed551a77fa1304a4size 1417774784123version https://git-lfs.github.com/spec/v1oid sha256:7b73a514e1524fa214603a649a569a3dd62a623cbb0a4d70ceff1806a3fe43easize 1359033024123version https://git-lfs.github.com/spec/v1oid sha256:f6adb783a03c13f6dad26bbb118fe963b4465dfb2a44229d27a157c28dd04deasize 1393905344123version https://git-lfs.github.com/spec/v1oid sha256:3c108339bb8d10e380d99d6c3295e202ca3365d4778fbf85a5048ed91d6b1bedsize 1519578304123version https://git-lfs.github.com/spec/v1oid sha256:5903159c842a0cd87729f2fba023f475b0731d1a357c20d8b3872519c7f5cf10size 1478828224123version https://git-lfs.github.com/spec/v1oid sha256:bbe28c7cb34e729ace738f81fc23ba821958c562bba4dab3349e200b2b27f235size 1947310784123version https://git-lfs.github.com/spec/v1oid sha256:5599b0fb00847485c8e173db5aa106d7cdba44465bd6c7afd3174881949637c5size 2027305664.gitattributes+12
opencoder-1.5b-base-q2_k.ggufAdded+3
opencoder-1.5b-base-q3_k_l.ggufAdded+3
opencoder-1.5b-base-q3_k_m.ggufAdded+3
opencoder-1.5b-base-q3_k_s.ggufAdded+3
opencoder-1.5b-base-q4_0.ggufAdded+3
opencoder-1.5b-base-q4_k_m.ggufAdded+3
opencoder-1.5b-base-q4_k_s.ggufAdded+3
opencoder-1.5b-base-q5_0.ggufAdded+3
opencoder-1.5b-base-q5_k_m.ggufAdded+3
opencoder-1.5b-base-q5_k_s.ggufAdded+3
opencoder-1.5b-base-q6_k.ggufAdded+3
opencoder-1.5b-base-q8_0.ggufAdded+3