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 (9)
12 unmodified lines131415161617181928 unmodified lines48495051525354555651525354555657585912 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.3517- Loss: 5.3544
## Model description
28 unmodified lines
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 1.0 | 7 | 7.7792 || No log | 2.0 | 14 | 7.0145 || 7.2066 | 3.0 | 21 | 6.5189 || 7.2066 | 4.0 | 28 | 5.9249 || 7.2066 | 5.0 | 35 | 5.5873 || 4.7445 | 6.0 | 42 | 5.3517 || No log | 1.0 | 7 | 7.8584 || No log | 2.0 | 14 | 7.0791 || 7.2479 | 3.0 | 21 | 6.6600 || 7.2479 | 4.0 | 28 | 6.1304 || 7.2479 | 5.0 | 35 | 5.6312 || 4.9652 | 6.0 | 42 | 5.3544 |
### Framework versions1223{ "<|endoftext|>": 4312 "<|endoftext|>": 12198}1223version https://git-lfs.github.com/spec/v1oid sha256:ff94515d6c5b430a6342f160004710a51ec5ab1f6e330c58ed5c5e51c7fbb8e1oid sha256:3cd0f919698c0e7c05db9b9d9eae4ed4e0a06a219be62f0ff0f38adeaeee1a27size 2796386080123version https://git-lfs.github.com/spec/v1oid sha256:db408b44afc75337196352b04352c8d77bbc4633e9491dd7ac472d53843ab603size 70371234456789101112131415161718192021222324252627282930731323334{ "add_prefix_space": false, "added_tokens_decoder": { "50256": { "0": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "12198": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "normalized": false, "rstrip": false, "single_word": false, "special": true1223version https://git-lfs.github.com/spec/v1oid sha256:643a33eb85763cc56594f442ab841ece74dc15ef92a57ec40aa57f7553a67c23oid sha256:ac0dc354c825c7dbd8b75226092f116da8373585f12e8323fd463d140293fcf8size 4984README.md+7-7
added_tokens.json+1-1
merges.txt
model.safetensors+1-1
runs/Apr16_10-38-55_gcn68.local.snellius.surf.nl/events.out.tfevents.1713256744.gcn68.local.snellius.surf.nl.1898645.0Added+3
tokenizer.json
tokenizer_config.json+26-2
training_args.bin+1-1
vocab.json