Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Run this model with HF Jobs
Run ninagroot/GPT2-705-RUN1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/ninagroot/GPT2-705-RUN1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ninagroot/GPT2-705-RUN1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/ninagroot/GPT2-705-RUN1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/ninagroot/GPT2-705-RUN1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use ninagroot/GPT2-705-RUN1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ninagroot/GPT2-705-RUN1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ninagroot/GPT2-705-RUN1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ninagroot/GPT2-705-RUN1") model = AutoModelForCausalLM.from_pretrained("ninagroot/GPT2-705-RUN1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ninagroot/GPT2-705-RUN1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ninagroot/GPT2-705-RUN1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ninagroot/GPT2-705-RUN1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ninagroot/GPT2-705-RUN1
- SGLang
How to use ninagroot/GPT2-705-RUN1 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 "ninagroot/GPT2-705-RUN1" \ --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": "ninagroot/GPT2-705-RUN1", "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 "ninagroot/GPT2-705-RUN1" \ --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": "ninagroot/GPT2-705-RUN1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ninagroot/GPT2-705-RUN1 with Docker Model Runner:
docker model run hf.co/ninagroot/GPT2-705-RUN1
ninagroot/GPT2-705Mtest
Browse filesFiles changed (4)
12 unmodified lines1314151617181921 unmodified lines41424344454647484950515253545556575859606162636465666768697071727374757612 unmodified linesThis model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 5.2910## Model description21 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 50- num_epochs: 40- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 9.7067 | 0.57 | 1 | 9.7226 || 8.0571 | 1.71 | 3 | 9.2898 || 8.3374 | 2.86 | 5 | 8.5986 || 7.5982 | 4.0 | 7 | 7.8459 || 7.2482 | 4.57 | 8 | 7.8008 || 6.9285 | 5.71 | 10 | 7.3997 || 6.4908 | 6.86 | 12 | 8.3017 || 6.3109 | 8.0 | 14 | 6.9692 || 6.2177 | 8.57 | 15 | 6.9043 || 5.9262 | 9.71 | 17 | 6.5565 || 5.6466 | 10.86 | 19 | 6.4155 || 5.3065 | 12.0 | 21 | 6.1934 || 5.1914 | 12.57 | 22 | 6.0177 || 4.9555 | 13.71 | 24 | 6.0827 || 4.7476 | 14.86 | 26 | 5.8534 || 4.6724 | 16.0 | 28 | 5.7760 || 4.4796 | 16.57 | 29 | 5.6058 || 4.2379 | 17.71 | 31 | 5.4230 || 4.1798 | 18.86 | 33 | 5.4227 || 3.9092 | 20.0 | 35 | 5.3294 || 3.8306 | 20.57 | 36 | 5.2938 || 3.735 | 21.71 | 38 | 5.5156 || 3.4544 | 22.86 | 40 | 5.2910 |### Framework versions12 unmodified lines1314151617181921 unmodified lines41424344454647484950515253545556575859606162636465666768697071727374757677787980818212 unmodified linesThis model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 5.5538## Model description21 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 50- num_epochs: 50- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 9.7407 | 0.57 | 1 | 9.7354 || 8.0949 | 1.71 | 3 | 9.2987 || 8.037 | 2.86 | 5 | 7.9942 || 8.4143 | 4.0 | 7 | 8.3825 || 7.7196 | 4.57 | 8 | 8.7978 || 7.2632 | 5.71 | 10 | 7.6261 || 6.9715 | 6.86 | 12 | 7.4135 || 6.4835 | 8.0 | 14 | 8.2776 || 7.1529 | 8.57 | 15 | 7.0085 || 6.1255 | 9.71 | 17 | 6.8228 || 5.9176 | 10.86 | 19 | 6.5603 || 5.5785 | 12.0 | 21 | 6.3862 || 5.4833 | 12.57 | 22 | 6.3011 || 5.1483 | 13.71 | 24 | 6.0480 || 4.9268 | 14.86 | 26 | 6.0532 || 4.6602 | 16.0 | 28 | 5.7750 || 4.5647 | 16.57 | 29 | 5.7046 || 4.3202 | 17.71 | 31 | 5.5333 || 4.1764 | 18.86 | 33 | 5.5809 || 4.1745 | 20.0 | 35 | 5.4089 || 4.0056 | 20.57 | 36 | 5.3978 || 3.8024 | 21.71 | 38 | 5.4085 || 3.5845 | 22.86 | 40 | 5.3279 || 3.4378 | 24.0 | 42 | 5.3881 || 3.3361 | 24.57 | 43 | 5.2754 || 3.2585 | 25.71 | 45 | 5.2913 || 3.168 | 26.86 | 47 | 5.4232 || 2.9045 | 28.0 | 49 | 5.5044 || 2.8709 | 28.57 | 50 | 5.5538 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:0bbe64cdd1fd57e3973cc244d9926375ebc01e1d458a14e400e45939441ddfc5size 2796386080123version https://git-lfs.github.com/spec/v1oid sha256:67a0ad96fd61d062481d2585b4b609b1352e057b1abfad475518de3e3e7a92fasize 2796386080
123version https://git-lfs.github.com/spec/v1oid sha256:e820e6647d03c6ab72ff3c33a7673f486461751c2af756c36d13f8666cdaa193size 23090123version https://git-lfs.github.com/spec/v1oid sha256:3d61ff082ec6c42f1e6bcb30e984b2a470071df3df92a3b469ceb01b0d1cf6f3size 4984123version https://git-lfs.github.com/spec/v1oid sha256:b2b71557a365487e867c53d02efcefd6b9c9702d6f5d94e2929a4f315cc59c4fsize 4984
README.md+31-25
model.safetensors+1-1
runs/Apr17_14-39-08_gcn53.local.snellius.surf.nl/events.out.tfevents.1713357559.gcn53.local.snellius.surf.nl.4133403.0Added+3
training_args.bin+1-1