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)
12 unmodified lines1314151617181928 unmodified lines48495051525354555612 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.4932## Model description28 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 5.4196 | 0.99 | 45 | 4.4846 || 3.5716 | 2.0 | 91 | 3.7327 || 2.7534 | 2.97 | 135 | 3.4932 |### Framework versions12 unmodified lines1314151617181928 unmodified lines48495051525354555612 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.5144## Model description28 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 5.4376 | 0.99 | 45 | 4.6269 || 3.5916 | 2.0 | 91 | 3.7375 || 2.7508 | 2.97 | 135 | 3.5144 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:4552a5b5466615ad92a7df8601aeb12b396b0e729bd38657c99ae7ee2b2117a4size 3030220576123version https://git-lfs.github.com/spec/v1oid sha256:edcdc2e8b934d6e5f57aec20c8665204d854e298d6bf9963a83ebea2ce4d8417size 3030220576
123version https://git-lfs.github.com/spec/v1oid sha256:440a46d29657f53eeb0d848fc96ff1a5205e06b8cf676d22a68bd155061a4011size 708112 unmodified lines1314151617181912 unmodified lines"bos_token": "<s>","clean_up_tokenization_spaces": true,"eos_token": "</s>","model_max_length": 30,"pad_token": "<pad>","tokenizer_class": "GPT2Tokenizer","unk_token": "<|endoftext|>"12 unmodified lines1314151617181912 unmodified lines"bos_token": "<s>","clean_up_tokenization_spaces": true,"eos_token": "</s>","model_max_length": 128,"pad_token": "<pad>","tokenizer_class": "GPT2Tokenizer","unk_token": "<|endoftext|>"
123version https://git-lfs.github.com/spec/v1oid sha256:ebd58b9a0e5a6daadd81f963d70b620afd0fec2098be85f765ad1702c6773750size 4984123version https://git-lfs.github.com/spec/v1oid sha256:67652905ed07950025ae0f17f985e23ba59ec1ae0e4cf668a1d90b4c0fa93ff3size 4984
README.md+4-4
model.safetensors+1-1
runs/Apr10_10-38-32_gcn8.local.snellius.surf.nl/events.out.tfevents.1712738322.gcn8.local.snellius.surf.nl.3761293.0Added+3
tokenizer_config.json+1-1
training_args.bin+1-1