Instructions to use bogosla/gpt-125M-CR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bogosla/gpt-125M-CR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bogosla/gpt-125M-CR")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bogosla/gpt-125M-CR") model = AutoModelForCausalLM.from_pretrained("bogosla/gpt-125M-CR") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use bogosla/gpt-125M-CR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bogosla/gpt-125M-CR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bogosla/gpt-125M-CR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bogosla/gpt-125M-CR
- SGLang
How to use bogosla/gpt-125M-CR 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 "bogosla/gpt-125M-CR" \ --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": "bogosla/gpt-125M-CR", "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 "bogosla/gpt-125M-CR" \ --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": "bogosla/gpt-125M-CR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bogosla/gpt-125M-CR with Docker Model Runner:
docker model run hf.co/bogosla/gpt-125M-CR
gpt-125m-cr
This model is a fine-tuned version of EleutherAI/gpt-neo-125m on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 2.4002
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.0005
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 32
- 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: cosine
- lr_scheduler_warmup_steps: 0.05
- num_epochs: 1
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 3.5916 | 0.0468 | 500 | 3.6148 |
| 3.3964 | 0.0935 | 1000 | 3.3468 |
| 3.2520 | 0.1403 | 1500 | 3.1837 |
| 3.1113 | 0.1871 | 2000 | 3.0535 |
| 2.9765 | 0.2338 | 2500 | 2.9742 |
| 2.9921 | 0.2806 | 3000 | 2.9028 |
| 2.8728 | 0.3274 | 3500 | 2.8260 |
| 2.7868 | 0.3741 | 4000 | 2.7799 |
| 2.7398 | 0.4209 | 4500 | 2.7301 |
| 2.7050 | 0.4677 | 5000 | 2.6818 |
| 2.6500 | 0.5145 | 5500 | 2.6310 |
| 2.6400 | 0.5612 | 6000 | 2.5810 |
| 2.5926 | 0.6080 | 6500 | 2.5462 |
| 2.5747 | 0.6548 | 7000 | 2.5108 |
| 2.5278 | 0.7015 | 7500 | 2.4811 |
| 2.4708 | 0.7483 | 8000 | 2.4537 |
| 2.4534 | 0.7951 | 8500 | 2.4327 |
| 2.4443 | 0.8418 | 9000 | 2.4178 |
| 2.3745 | 0.8886 | 9500 | 2.4070 |
| 2.4723 | 0.9354 | 10000 | 2.4018 |
| 2.4400 | 0.9821 | 10500 | 2.4002 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 23
Model tree for bogosla/gpt-125M-CR
Base model
EleutherAI/gpt-neo-125m