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 (5)
- README.md+15-15
- model.safetensors+1-1
- runs/Apr16_11-48-21_gcn20.local.snellius.surf.nl/events.out.tfevents.1713260914.gcn20.local.snellius.surf.nl.2068065.0Added+3
- runs/Apr16_13-14-39_gcn15.local.snellius.surf.nl/events.out.tfevents.1713266088.gcn15.local.snellius.surf.nl.3472509.0Added+3
- training_args.bin+1-1
12 unmodified lines1314151617181913 unmodified lines333435363738394041425 unmodified lines48495051525354555657585960616263646512 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.4686## 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: cosine5 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 0.57 | 1 | 9.6994 || No log | 1.71 | 3 | 8.4606 || No log | 2.86 | 5 | 8.2029 || No log | 4.0 | 7 | 8.3213 || No log | 4.57 | 8 | 7.6727 || No log | 5.71 | 10 | 7.8271 || No log | 6.86 | 12 | 7.3413 || No log | 8.0 | 14 | 7.1521 || No log | 8.57 | 15 | 7.4625 || No log | 9.71 | 17 | 6.8302 || No log | 10.86 | 19 | 6.5958 || 7.2144 | 11.43 | 20 | 6.4686 |### Framework versions12 unmodified lines1314151617181913 unmodified lines333435363738394041425 unmodified lines48495051525354555657585960616263646512 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.5241## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.00025- train_batch_size: 32- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 128- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine5 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 0.57 | 1 | 9.7551 || No log | 1.71 | 3 | 8.5731 || No log | 2.86 | 5 | 8.3102 || No log | 4.0 | 7 | 7.8022 || No log | 4.57 | 8 | 7.8957 || No log | 5.71 | 10 | 7.6326 || No log | 6.86 | 12 | 7.1814 || No log | 8.0 | 14 | 7.1649 || No log | 8.57 | 15 | 7.2076 || No log | 9.71 | 17 | 6.8886 || No log | 10.86 | 19 | 6.7248 || 7.2482 | 11.43 | 20 | 6.5241 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:b29a02081370b916d9e2490a30fa446c32b6a574b12ad63383953b7c833dae2dsize 2796386080123version https://git-lfs.github.com/spec/v1oid sha256:1c5417ac71518a8220972822a4c848140b00a5391ed55ea2220f8531f8211ba8size 2796386080
123version https://git-lfs.github.com/spec/v1oid sha256:df67aa0d42b4dbfc3546ecbdf70d97da71cd0077df705c757ed651a5c5175161size 4681123version https://git-lfs.github.com/spec/v1oid sha256:ae9605d91ead565f87a3bf649db20ad5041311532aaa7d6988bf1cf717f7c032size 8427123version https://git-lfs.github.com/spec/v1oid sha256:7e08aac561e2e90819c099d507dea65f4cf25dfb5403c4f3df1b00352cd7455fsize 4984123version https://git-lfs.github.com/spec/v1oid sha256:d592c2b14c44074ee108ffafae8e6da5dfaf4a9d4d3a01ed0f837078ae3f49a2size 4984
README.md+15-15
model.safetensors+1-1
runs/Apr16_11-48-21_gcn20.local.snellius.surf.nl/events.out.tfevents.1713260914.gcn20.local.snellius.surf.nl.2068065.0Added+3
runs/Apr16_13-14-39_gcn15.local.snellius.surf.nl/events.out.tfevents.1713266088.gcn15.local.snellius.surf.nl.3472509.0Added+3
training_args.bin+1-1