Instructions to use gritsys/my_awesome_eli5_clm-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gritsys/my_awesome_eli5_clm-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gritsys/my_awesome_eli5_clm-model")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gritsys/my_awesome_eli5_clm-model") model = AutoModelForCausalLM.from_pretrained("gritsys/my_awesome_eli5_clm-model") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gritsys/my_awesome_eli5_clm-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gritsys/my_awesome_eli5_clm-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gritsys/my_awesome_eli5_clm-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gritsys/my_awesome_eli5_clm-model
- SGLang
How to use gritsys/my_awesome_eli5_clm-model 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 "gritsys/my_awesome_eli5_clm-model" \ --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": "gritsys/my_awesome_eli5_clm-model", "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 "gritsys/my_awesome_eli5_clm-model" \ --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": "gritsys/my_awesome_eli5_clm-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gritsys/my_awesome_eli5_clm-model with Docker Model Runner:
docker model run hf.co/gritsys/my_awesome_eli5_clm-model
gritsys/my_awesome_eli5_clm-model
This model is a fine-tuned version of distilgpt2 on an unknown dataset. It achieves the following results on the evaluation set:
- Train Loss: 5.3399
- Validation Loss: 5.5886
- Epoch: 14
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:
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': 2e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False, 'weight_decay_rate': 0.01}
- training_precision: float32
Training results
| Train Loss | Validation Loss | Epoch |
|---|---|---|
| 6.7702 | 6.4295 | 0 |
| 6.3075 | 6.2404 | 1 |
| 6.1358 | 6.1114 | 2 |
| 6.0137 | 6.0240 | 3 |
| 5.9162 | 5.9632 | 4 |
| 5.8324 | 5.8999 | 5 |
| 5.7573 | 5.8411 | 6 |
| 5.6913 | 5.7984 | 7 |
| 5.6306 | 5.7603 | 8 |
| 5.5742 | 5.7290 | 9 |
| 5.5219 | 5.6919 | 10 |
| 5.4724 | 5.6651 | 11 |
| 5.4264 | 5.6356 | 12 |
| 5.3815 | 5.6159 | 13 |
| 5.3399 | 5.5886 | 14 |
Framework versions
- Transformers 4.26.1
- TensorFlow 2.11.0
- Datasets 2.10.0
- Tokenizers 0.13.2
- Downloads last month
- 3