Instructions to use JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution-baseline 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-baseline 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-baseline")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution-baseline", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution-baseline 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-baseline" # 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-baseline", "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-baseline
- SGLang
How to use JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution-baseline 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-baseline" \ --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-baseline", "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-baseline" \ --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-baseline", "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-baseline with Docker Model Runner:
docker model run hf.co/JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution-baseline
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
| 14 |
"intermediate_size": 5504,
|
| 15 |
"max_position_embeddings": 16384,
|
| 16 |
"mlp_bias": false,
|
| 17 |
-
"model_path": "
|
| 18 |
"model_type": "llama",
|
| 19 |
"num_attention_heads": 16,
|
| 20 |
"num_hidden_layers": 24,
|
|
@@ -28,7 +28,7 @@
|
|
| 28 |
},
|
| 29 |
"rope_theta": 100000,
|
| 30 |
"tie_word_embeddings": false,
|
| 31 |
-
"tokenizer_path": "
|
| 32 |
"torch_dtype": "float32",
|
| 33 |
"transformers_version": "4.46.3",
|
| 34 |
"use_cache": true,
|
|
|
|
| 14 |
"intermediate_size": 5504,
|
| 15 |
"max_position_embeddings": 16384,
|
| 16 |
"mlp_bias": false,
|
| 17 |
+
"model_path": "JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution-baseline",
|
| 18 |
"model_type": "llama",
|
| 19 |
"num_attention_heads": 16,
|
| 20 |
"num_hidden_layers": 24,
|
|
|
|
| 28 |
},
|
| 29 |
"rope_theta": 100000,
|
| 30 |
"tie_word_embeddings": false,
|
| 31 |
+
"tokenizer_path": "JetBrains-Research/deepseek-coder-1.3b-instruct-comment-resolution-baseline",
|
| 32 |
"torch_dtype": "float32",
|
| 33 |
"transformers_version": "4.46.3",
|
| 34 |
"use_cache": true,
|