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 lines131415161617181921 unmodified lines414243444445464748495051525354555657585951525354555657585960616263646566676869707112 unmodified lines
This 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.7957- Loss: 5.5515
## Model description
21 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: 10- num_epochs: 20- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 0.86 | 3 | 9.1712 || No log | 2.0 | 7 | 8.7604 || No log | 2.86 | 10 | 7.5925 || No log | 4.0 | 14 | 7.3624 || No log | 4.86 | 17 | 6.9348 || 7.3776 | 6.0 | 21 | 6.4774 || 7.3776 | 6.86 | 24 | 6.4065 || 7.3776 | 8.0 | 28 | 5.9677 || 7.3776 | 8.57 | 30 | 5.7957 || No log | 0.86 | 3 | 8.6420 || No log | 2.0 | 7 | 8.3017 || No log | 2.86 | 10 | 7.4703 || No log | 4.0 | 14 | 7.3033 || No log | 4.86 | 17 | 6.6681 || 7.0997 | 6.0 | 21 | 6.2953 || 7.0997 | 6.86 | 24 | 5.9852 || 7.0997 | 8.0 | 28 | 5.7430 || 7.0997 | 8.86 | 31 | 5.5474 || 7.0997 | 10.0 | 35 | 5.5484 || 7.0997 | 10.86 | 38 | 5.4335 || 4.4904 | 12.0 | 42 | 5.4799 || 4.4904 | 12.86 | 45 | 5.4311 || 4.4904 | 14.0 | 49 | 5.7129 || 4.4904 | 14.86 | 52 | 5.5459 || 4.4904 | 16.0 | 56 | 5.5459 || 4.4904 | 16.86 | 59 | 5.5522 || 3.0663 | 17.14 | 60 | 5.5515 |
### Framework versions1223version https://git-lfs.github.com/spec/v1oid sha256:1a97e4f33ec53e9ee3587a4c8d037c3739a5750718be3288f0206a3d76e6baa7oid sha256:ee4a9c5cdd3799705c0296fcf0aec464ca69228d3b8120854fc6e5eb7f36ae30size 2796386080123version https://git-lfs.github.com/spec/v1oid sha256:cc25ab478c73a0a963ff044654a8079b34dce1f7cfb19feaed4eb7352c02de03size 104351223version https://git-lfs.github.com/spec/v1oid sha256:9737ed2ac8b321c46a74a7040cd59b1107ef509adb81edf26aaff17959f3223coid sha256:7d76a6045c2ee2ccfa0812342fad889ec172e533d684e35763532afaa5c0e77dsize 4984README.md+20-11
model.safetensors+1-1
runs/Apr16_11-04-43_gcn13.local.snellius.surf.nl/events.out.tfevents.1713258292.gcn13.local.snellius.surf.nl.484961.0Added+3
training_args.bin+1-1