Text Generation
Transformers
PyTorch
Safetensors
llama
axolotl
Generated from Trainer
text-generation-inference
Instructions to use CodeGPTPlus/deepseek-coder-1.3b-typescript with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CodeGPTPlus/deepseek-coder-1.3b-typescript with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CodeGPTPlus/deepseek-coder-1.3b-typescript")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CodeGPTPlus/deepseek-coder-1.3b-typescript") model = AutoModelForCausalLM.from_pretrained("CodeGPTPlus/deepseek-coder-1.3b-typescript") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CodeGPTPlus/deepseek-coder-1.3b-typescript with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CodeGPTPlus/deepseek-coder-1.3b-typescript" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CodeGPTPlus/deepseek-coder-1.3b-typescript", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CodeGPTPlus/deepseek-coder-1.3b-typescript
- SGLang
How to use CodeGPTPlus/deepseek-coder-1.3b-typescript 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 "CodeGPTPlus/deepseek-coder-1.3b-typescript" \ --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": "CodeGPTPlus/deepseek-coder-1.3b-typescript", "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 "CodeGPTPlus/deepseek-coder-1.3b-typescript" \ --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": "CodeGPTPlus/deepseek-coder-1.3b-typescript", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CodeGPTPlus/deepseek-coder-1.3b-typescript with Docker Model Runner:
docker model run hf.co/CodeGPTPlus/deepseek-coder-1.3b-typescript
End of training
Browse files- README.md +30 -1
- pytorch_model.bin +3 -0
README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
license: other
|
| 3 |
base_model: deepseek-ai/deepseek-coder-1.3b-base
|
| 4 |
tags:
|
|
|
|
| 5 |
- generated_from_trainer
|
| 6 |
model-index:
|
| 7 |
- name: deepseek_coder_1.3b_typescript
|
|
@@ -105,7 +106,9 @@ special_tokens:
|
|
| 105 |
|
| 106 |
# deepseek_coder_1.3b_typescript
|
| 107 |
|
| 108 |
-
This model is a fine-tuned version of [deepseek-ai/deepseek-coder-1.3b-base](https://huggingface.co/deepseek-ai/deepseek-coder-1.3b-base) on
|
|
|
|
|
|
|
| 109 |
|
| 110 |
## Model description
|
| 111 |
|
|
@@ -135,6 +138,32 @@ The following hyperparameters were used during training:
|
|
| 135 |
- lr_scheduler_warmup_steps: 261
|
| 136 |
- num_epochs: 1
|
| 137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
### Framework versions
|
| 139 |
|
| 140 |
- Transformers 4.37.0.dev0
|
|
|
|
| 2 |
license: other
|
| 3 |
base_model: deepseek-ai/deepseek-coder-1.3b-base
|
| 4 |
tags:
|
| 5 |
+
- axolotl
|
| 6 |
- generated_from_trainer
|
| 7 |
model-index:
|
| 8 |
- name: deepseek_coder_1.3b_typescript
|
|
|
|
| 106 |
|
| 107 |
# deepseek_coder_1.3b_typescript
|
| 108 |
|
| 109 |
+
This model is a fine-tuned version of [deepseek-ai/deepseek-coder-1.3b-base](https://huggingface.co/deepseek-ai/deepseek-coder-1.3b-base) on the None dataset.
|
| 110 |
+
It achieves the following results on the evaluation set:
|
| 111 |
+
- Loss: 0.7681
|
| 112 |
|
| 113 |
## Model description
|
| 114 |
|
|
|
|
| 138 |
- lr_scheduler_warmup_steps: 261
|
| 139 |
- num_epochs: 1
|
| 140 |
|
| 141 |
+
### Training results
|
| 142 |
+
|
| 143 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 144 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
| 145 |
+
| 1.0745 | 0.0 | 1 | 0.8681 |
|
| 146 |
+
| 1.2267 | 0.05 | 1308 | 0.8130 |
|
| 147 |
+
| 1.1594 | 0.1 | 2616 | 0.8018 |
|
| 148 |
+
| 0.7674 | 0.15 | 3924 | 0.7942 |
|
| 149 |
+
| 0.6443 | 0.2 | 5232 | 0.7889 |
|
| 150 |
+
| 0.9155 | 0.25 | 6540 | 0.7847 |
|
| 151 |
+
| 0.7501 | 0.3 | 7848 | 0.7819 |
|
| 152 |
+
| 0.8835 | 0.35 | 9156 | 0.7792 |
|
| 153 |
+
| 0.7261 | 0.4 | 10464 | 0.7769 |
|
| 154 |
+
| 0.9746 | 0.45 | 11772 | 0.7748 |
|
| 155 |
+
| 0.6884 | 0.5 | 13080 | 0.7734 |
|
| 156 |
+
| 0.6104 | 0.55 | 14388 | 0.7722 |
|
| 157 |
+
| 0.8876 | 0.6 | 15696 | 0.7710 |
|
| 158 |
+
| 0.9567 | 0.65 | 17004 | 0.7703 |
|
| 159 |
+
| 0.6915 | 0.7 | 18312 | 0.7696 |
|
| 160 |
+
| 0.8874 | 0.75 | 19620 | 0.7691 |
|
| 161 |
+
| 0.6124 | 0.8 | 20928 | 0.7686 |
|
| 162 |
+
| 0.8147 | 0.85 | 22236 | 0.7684 |
|
| 163 |
+
| 0.8021 | 0.9 | 23544 | 0.7683 |
|
| 164 |
+
| 0.8665 | 0.95 | 24852 | 0.7681 |
|
| 165 |
+
|
| 166 |
+
|
| 167 |
### Framework versions
|
| 168 |
|
| 169 |
- Transformers 4.37.0.dev0
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b597b716682237030db58a15ddc0bd6220d28a447b82ce12190258c7f8e2d962
|
| 3 |
+
size 3234082681
|