Instructions to use chgk13/decicoder-1b-openvino-int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chgk13/decicoder-1b-openvino-int8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chgk13/decicoder-1b-openvino-int8", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("chgk13/decicoder-1b-openvino-int8", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("chgk13/decicoder-1b-openvino-int8", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use chgk13/decicoder-1b-openvino-int8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chgk13/decicoder-1b-openvino-int8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chgk13/decicoder-1b-openvino-int8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/chgk13/decicoder-1b-openvino-int8
- SGLang
How to use chgk13/decicoder-1b-openvino-int8 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 "chgk13/decicoder-1b-openvino-int8" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chgk13/decicoder-1b-openvino-int8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "chgk13/decicoder-1b-openvino-int8" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chgk13/decicoder-1b-openvino-int8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use chgk13/decicoder-1b-openvino-int8 with Docker Model Runner:
docker model run hf.co/chgk13/decicoder-1b-openvino-int8
Commit History
-
Upload special_tokens_map.json with huggingface_hub
28f7ff9 -
Upload config.json with huggingface_hub
6f43c0e -
Upload tokenizer.json with huggingface_hub
5b92a34 -
Upload tokenizer_config.json with huggingface_hub
3414bc9 -
Upload openvino_model.xml with huggingface_hub
a0c1489 -
Upload configuration_decicoder.py with huggingface_hub
9ddaf7f -
Upload merges.txt with huggingface_hub
73a00c9 -
Upload openvino_model.bin with huggingface_hub
f9c28e7 -
Upload vocab.json with huggingface_hub
199b66b -
Upload tokenizer
524fe82 -
Upload special_tokens_map.json with huggingface_hub
f7761ac -
Upload config.json with huggingface_hub
3f09636 -
Upload tokenizer.json with huggingface_hub
f6120fa -
Upload tokenizer_config.json with huggingface_hub
7acc22c -
Upload openvino_model.xml with huggingface_hub
f3dfcde -
Upload merges.txt with huggingface_hub
378f4ea -
Upload openvino_model.bin with huggingface_hub
1bd92c5 -
Upload vocab.json with huggingface_hub
0acca49 -
Upload vocab.json with huggingface_hub
89ba894 -
initial commit
8e04cb5