Text Generation
Transformers
Safetensors
llama
trl
sft
Generated from Trainer
text-generation-inference
Instructions to use stojchet/sft1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stojchet/sft1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stojchet/sft1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("stojchet/sft1") model = AutoModelForCausalLM.from_pretrained("stojchet/sft1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stojchet/sft1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stojchet/sft1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stojchet/sft1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/stojchet/sft1
- SGLang
How to use stojchet/sft1 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 "stojchet/sft1" \ --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": "stojchet/sft1", "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 "stojchet/sft1" \ --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": "stojchet/sft1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use stojchet/sft1 with Docker Model Runner:
docker model run hf.co/stojchet/sft1
End of training
Browse files- README.md +5 -5
- generation_config.json +1 -1
README.md
CHANGED
|
@@ -18,7 +18,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 18 |
|
| 19 |
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 an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss: 0.
|
| 22 |
|
| 23 |
## Model description
|
| 24 |
|
|
@@ -43,7 +43,7 @@ The following hyperparameters were used during training:
|
|
| 43 |
- seed: 42
|
| 44 |
- gradient_accumulation_steps: 16
|
| 45 |
- total_train_batch_size: 128
|
| 46 |
-
- optimizer:
|
| 47 |
- lr_scheduler_type: linear
|
| 48 |
- lr_scheduler_warmup_steps: 200
|
| 49 |
- num_epochs: 3
|
|
@@ -52,12 +52,12 @@ The following hyperparameters were used during training:
|
|
| 52 |
|
| 53 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 54 |
|:-------------:|:------:|:----:|:---------------:|
|
| 55 |
-
| 0.
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
| 59 |
|
| 60 |
-
- Transformers 4.
|
| 61 |
- Pytorch 2.5.1+cu124
|
| 62 |
- Datasets 2.19.2
|
| 63 |
-
- Tokenizers 0.
|
|
|
|
| 18 |
|
| 19 |
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 an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.4710
|
| 22 |
|
| 23 |
## Model description
|
| 24 |
|
|
|
|
| 43 |
- seed: 42
|
| 44 |
- gradient_accumulation_steps: 16
|
| 45 |
- total_train_batch_size: 128
|
| 46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 47 |
- lr_scheduler_type: linear
|
| 48 |
- lr_scheduler_warmup_steps: 200
|
| 49 |
- num_epochs: 3
|
|
|
|
| 52 |
|
| 53 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 54 |
|:-------------:|:------:|:----:|:---------------:|
|
| 55 |
+
| 0.509 | 2.3088 | 100 | 0.4710 |
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
| 59 |
|
| 60 |
+
- Transformers 4.45.0
|
| 61 |
- Pytorch 2.5.1+cu124
|
| 62 |
- Datasets 2.19.2
|
| 63 |
+
- Tokenizers 0.20.3
|
generation_config.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 32013,
|
| 4 |
"eos_token_id": 32014,
|
| 5 |
-
"transformers_version": "4.
|
| 6 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 32013,
|
| 4 |
"eos_token_id": 32014,
|
| 5 |
+
"transformers_version": "4.45.0"
|
| 6 |
}
|