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 lines1314151617181913 unmodified lines333435363738394041424344454647484950515253545556575859606162636465666768697071727312 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: 6.0614## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.00025- train_batch_size: 8- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 32- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 50- num_epochs: 20- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 8.8224 | 1.0 | 7 | 7.6832 || 7.4858 | 2.0 | 14 | 7.1509 || 6.0862 | 3.0 | 21 | 6.5037 || 5.6017 | 4.0 | 28 | 5.9130 || 4.6362 | 5.0 | 35 | 5.7221 || 4.2618 | 6.0 | 42 | 5.3891 || 3.9715 | 7.0 | 49 | 5.3131 || 3.5012 | 8.0 | 56 | 5.4218 || 3.29 | 9.0 | 63 | 5.4657 || 2.8687 | 10.0 | 70 | 5.4606 || 2.6341 | 11.0 | 77 | 5.5206 || 2.6041 | 12.0 | 84 | 5.7237 || 2.2504 | 13.0 | 91 | 5.7820 || 2.0707 | 14.0 | 98 | 5.8230 || 1.8755 | 15.0 | 105 | 5.9205 || 1.7089 | 16.0 | 112 | 5.9806 || 1.6494 | 17.0 | 119 | 6.0164 || 1.4828 | 18.0 | 126 | 6.0369 || 1.3989 | 19.0 | 133 | 6.0577 || 1.3667 | 20.0 | 140 | 6.0614 |### Framework versions12 unmodified lines1314151617181913 unmodified lines3334353637383940414243444546474849505152535455565712 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: 8.2338## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.00025- train_batch_size: 16- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 8- total_train_batch_size: 128- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 50- num_epochs: 7- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 0.57 | 1 | 9.6467 || No log | 1.71 | 3 | 9.2986 || 8.859 | 2.86 | 5 | 8.2412 || 8.859 | 4.0 | 7 | 8.2338 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:1e5d79cd8946236db58f0963e9396cd82746d86aa096f5fb318c36e789bd5a3fsize 2796386080123version https://git-lfs.github.com/spec/v1oid sha256:74c56106065c30430444b5d8f7c6f8818cdf7c13d35ff929b4d6086f5671989bsize 2796386080
123version https://git-lfs.github.com/spec/v1oid sha256:0c40a465e424baa5a5abe2fac1e806c61c827c1bab2d352e110d3d6d94f58b50size 6296123version https://git-lfs.github.com/spec/v1oid sha256:4f6b02ba198741c9abb6b2a702173cca3abfc60f62553972603e016427f2da79size 4984123version https://git-lfs.github.com/spec/v1oid sha256:291dd62c59e352bed154923a6e1726aa39f76b84f3074d31fbc9d294eed6cc5esize 4984
README.md+9-25
model.safetensors+1-1
runs/Apr16_13-55-28_gcn38.local.snellius.surf.nl/events.out.tfevents.1713268535.gcn38.local.snellius.surf.nl.410095.0Added+3
training_args.bin+1-1