Instructions to use sullivan1502/base-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sullivan1502/base-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sullivan1502/base-sft")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sullivan1502/base-sft") model = AutoModelForCausalLM.from_pretrained("sullivan1502/base-sft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sullivan1502/base-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sullivan1502/base-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sullivan1502/base-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sullivan1502/base-sft
- SGLang
How to use sullivan1502/base-sft 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 "sullivan1502/base-sft" \ --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": "sullivan1502/base-sft", "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 "sullivan1502/base-sft" \ --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": "sullivan1502/base-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sullivan1502/base-sft with Docker Model Runner:
docker model run hf.co/sullivan1502/base-sft
base-sft
This model was trained from scratch on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.3190
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 128
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 32
- total_train_batch_size: 4096
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 0.03
- training_steps: 1000
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.3355 | 0.05 | 50 | 0.3331 |
| 0.3330 | 0.1 | 100 | 0.3311 |
| 0.3328 | 0.15 | 150 | 0.3325 |
| 0.3312 | 0.2 | 200 | 0.3294 |
| 0.3304 | 0.25 | 250 | 0.3282 |
| 0.3295 | 0.3 | 300 | 0.3280 |
| 0.3288 | 0.35 | 350 | 0.3271 |
| 0.3282 | 0.4 | 400 | 0.3272 |
| 0.3271 | 0.45 | 450 | 0.3250 |
| 0.3267 | 0.5 | 500 | 0.3262 |
| 0.3261 | 0.55 | 550 | 0.3241 |
| 0.3256 | 0.6 | 600 | 0.3232 |
| 0.3245 | 0.65 | 650 | 0.3234 |
| 0.3231 | 0.7 | 700 | 0.3227 |
| 0.3233 | 0.75 | 750 | 0.3214 |
| 0.3219 | 0.8 | 800 | 0.3208 |
| 0.3220 | 0.85 | 850 | 0.3206 |
| 0.3203 | 0.9 | 900 | 0.3195 |
| 0.3200 | 0.95 | 950 | 0.3191 |
| 0.3196 | 1.0 | 1000 | 0.3190 |
Framework versions
- Transformers 5.13.1
- Pytorch 2.11.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 258