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 lines1314151617181920 unmodified lines404142434445461 unmodified line48495051525354555657585960616263646512 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.7483## Model description20 unmodified lines- 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: 10- num_epochs: 20- mixed_precision_training: Native AMP1 unmodified line| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 0.57 | 1 | 9.7849 || No log | 1.71 | 3 | 10.0209 || No log | 2.86 | 5 | 9.1360 || No log | 4.0 | 7 | 7.9380 || No log | 4.57 | 8 | 7.9329 || No log | 5.71 | 10 | 7.3872 || No log | 6.86 | 12 | 7.0699 || No log | 8.0 | 14 | 6.8953 || No log | 8.57 | 15 | 6.8165 || No log | 9.71 | 17 | 6.7650 || No log | 10.86 | 19 | 6.7507 || 7.5456 | 11.43 | 20 | 6.7483 |### Framework versions12 unmodified lines1314151617181920 unmodified lines4041424344451 unmodified line47484950515253545556575859606162636412 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.9571## Model description20 unmodified lines- total_train_batch_size: 128- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- num_epochs: 20- mixed_precision_training: Native AMP1 unmodified line| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 0.57 | 1 | 10.8430 || No log | 1.71 | 3 | 9.6245 || No log | 2.86 | 5 | 8.3578 || No log | 4.0 | 7 | 7.6791 || No log | 4.57 | 8 | 7.6125 || No log | 5.71 | 10 | 7.1608 || No log | 6.86 | 12 | 7.0488 || No log | 8.0 | 14 | 7.0351 || No log | 8.57 | 15 | 7.0075 || No log | 9.71 | 17 | 6.9691 || No log | 10.86 | 19 | 6.9580 || 7.4341 | 11.43 | 20 | 6.9571 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:c503296ed8506ecb4c9a10e51cc78965e993587f63dfe0a198b5902de709c6c8size 2796386080123version https://git-lfs.github.com/spec/v1oid sha256:70faebe0809ca7205d8d197f52a43a23f8eeaadee5a9ec0005fbe100adc8ee74size 2796386080
123version https://git-lfs.github.com/spec/v1oid sha256:bcc69ea2bf490cc98fd6447a5aef290cfcef9c0ef92391e56f2917626222238bsize 8425123version https://git-lfs.github.com/spec/v1oid sha256:1ddf055fc5004e6b9a8f61f830da68846c10a7076d6a17d998ebfb69a5b6d97csize 4984123version https://git-lfs.github.com/spec/v1oid sha256:c9ba3507956ac8f0c49f71b7bb013008a63e70f634ebf0e9d9a6924f3f9df732size 4984
README.md+13-14
model.safetensors+1-1
runs/Apr16_13-30-19_gcn40.local.snellius.surf.nl/events.out.tfevents.1713267028.gcn40.local.snellius.surf.nl.3453357.0Added+3
training_args.bin+1-1