Instructions to use JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution
- SGLang
How to use JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution 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 "JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution" \ --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": "JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution", "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 "JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution" \ --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": "JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution with Docker Model Runner:
docker model run hf.co/JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution
Commit History
-
Upload model
Verified signature5a12d04
-
Delete tokenizer_config.json
Verified signature4b673f2 -
Delete tokenizer.json
Verified signature7e6e533 -
Delete special_tokens_map.json
Verified signature2105d75 -
Delete model.safetensors.index.json
Verified signaturef7aa21f -
Delete model-00002-of-00002.safetensors
Verified signature1cdfefb -
Delete model-00001-of-00002.safetensors
Verified signaturec520ce7 -
Delete generation_config.json
Verified signature400a777 -
Upload model
Verified signature7f71fe7
-
Update config.json
Verified signature7258b6e
-
Upload tokenizer
Verified signature6244492
-
Upload model
Verified signature738f29f -
initial commit
Verified signaturefcacbe9