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 (6)
12 unmodified lines1314151617181928 unmodified lines484950515253545556575859606162636412 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: 4.3277## Model description28 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 5.8849 | 1.0 | 138 | 5.5972 || 5.0533 | 2.0 | 276 | 4.9053 || 4.0659 | 3.0 | 414 | 4.5644 || 4.0541 | 4.0 | 552 | 4.4225 || 3.8361 | 5.0 | 690 | 4.3304 || 3.5307 | 6.0 | 828 | 4.3277 |### Framework versions- Transformers 4.37.2- Pytorch 2.1.2+cu121- Datasets 2.16.1- Tokenizers 0.15.012 unmodified lines1314151617181928 unmodified lines484950515253545556575859606162636412 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: 3.6575## Model description28 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 2.9814 | 1.0 | 786 | 3.7914 || 2.5963 | 2.0 | 1572 | 3.6927 || 2.3478 | 3.0 | 2358 | 3.7172 || 2.0341 | 4.0 | 3144 | 3.6845 || 1.7373 | 5.0 | 3930 | 3.6596 || 1.7065 | 6.0 | 4716 | 3.6575 |### Framework versions- Transformers 4.39.1- Pytorch 2.1.2+cu121- Datasets 2.16.1- Tokenizers 0.15.0
25 unmodified lines2627282930313225 unmodified lines"summary_type": "cls_index","summary_use_proj": true,"torch_dtype": "float32","transformers_version": "4.37.2","use_cache": true,"vocab_size": 4312}25 unmodified lines2627282930313225 unmodified lines"summary_type": "cls_index","summary_use_proj": true,"torch_dtype": "float32","transformers_version": "4.39.1","use_cache": true,"vocab_size": 32000}
2 unmodified lines345672 unmodified lines"bos_token_id": 50256,"eos_token_id": 50256,"pad_token_id": 0,"transformers_version": "4.37.2"}2 unmodified lines345672 unmodified lines"bos_token_id": 50256,"eos_token_id": 50256,"pad_token_id": 0,"transformers_version": "4.39.1"}
123version https://git-lfs.github.com/spec/v1oid sha256:8f400724a6e0d3898b884969758b48524c91c76bd4046072ce4e2c350645c075size 2747934496123version https://git-lfs.github.com/spec/v1oid sha256:6c91e31860b19345b05e0f1e9e1ba2de97ffc56b229cb792f4542af9b151e2afsize 2918049568
123version https://git-lfs.github.com/spec/v1oid sha256:b838993b4bac0f3f173cb6860a746350da5b1faa31a15da1c4b0969863ce6d8esize 56220123version https://git-lfs.github.com/spec/v1oid sha256:bf71524b3c83674824e3d16b3d014431c3ea8d8433979f72682c2eefae6d82b6size 4728123version https://git-lfs.github.com/spec/v1oid sha256:aa0847ab599c58a1133dac29dd7ae134718e1285515ee60a80d4d30e0cb92086size 4984
README.md+8-8
config.json+2-2
generation_config.json+1-1
model.safetensors+2-2
runs/Apr05_14-54-56_gcn33.local.snellius.surf.nl/events.out.tfevents.1712321705.gcn33.local.snellius.surf.nl.3713920.0Added+3
training_args.bin+2-2