Run this model with HF Jobs
Run mikeluck/gpt2-wikitext2 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/mikeluck/gpt2-wikitext2. 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/mikeluck/gpt2-wikitext2 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/mikeluck/gpt2-wikitext2. 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/mikeluck/gpt2-wikitext2. 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 mikeluck/gpt2-wikitext2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mikeluck/gpt2-wikitext2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mikeluck/gpt2-wikitext2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mikeluck/gpt2-wikitext2") model = AutoModelForCausalLM.from_pretrained("mikeluck/gpt2-wikitext2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mikeluck/gpt2-wikitext2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mikeluck/gpt2-wikitext2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mikeluck/gpt2-wikitext2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mikeluck/gpt2-wikitext2
- SGLang
How to use mikeluck/gpt2-wikitext2 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 "mikeluck/gpt2-wikitext2" \ --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": "mikeluck/gpt2-wikitext2", "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 "mikeluck/gpt2-wikitext2" \ --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": "mikeluck/gpt2-wikitext2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mikeluck/gpt2-wikitext2 with Docker Model Runner:
docker model run hf.co/mikeluck/gpt2-wikitext2
Commit History
-
Training in progress, step 251000
7d51371 -
Training in progress, step 250000
09665e4 -
Training in progress, step 249000
0be739e -
Training in progress, step 248000
15cd679 -
Training in progress, step 247000
2c5ec5d -
Training in progress, step 246000
0c684ca -
Training in progress, step 245000
a6d9ccb -
Training in progress, step 244000
99790aa -
Training in progress, step 243000
20c96f1 -
Training in progress, step 242000
e46a5fa -
Training in progress, step 240500
3dc21dc -
Training in progress, step 239500
b43b150 -
Training in progress, step 238500
792ed88 -
Training in progress, step 237500
a396218 -
Training in progress, step 236500
ecda144 -
Training in progress, step 235500
ed079cd -
Training in progress, step 234500
93ecc15 -
Training in progress, step 233500
598604a -
Training in progress, step 232500
6286767 -
Training in progress, step 231500
60f3743 -
Training in progress, step 230000
8f77420 -
Training in progress, step 229000
2c3d020 -
Training in progress, step 228000
f70d845 -
Training in progress, step 226000
1d0d531 -
Training in progress, step 225000
b21ca6d -
Training in progress, step 224000
dba1aa9 -
Training in progress, step 223000
dea4dc3 -
Training in progress, step 222000
17925b3 -
Training in progress, step 221000
2a83cdc -
Training in progress, step 219500
1e4a468 -
Training in progress, step 218000
67484f2 -
Training in progress, step 216500
ad16b38 -
Training in progress, step 215000
121372e -
Training in progress, step 214000
c50b256 -
Training in progress, step 213000
ee860e9 -
Training in progress, step 212000
404954c -
Training in progress, step 210000
9abdb81 -
Training in progress, step 209000
0670c7d -
Training in progress, step 208000
ea8197d -
Training in progress, step 207000
20214bf -
Training in progress, step 206000
afd2ab7 -
Training in progress, step 205000
ce6ccfa -
Training in progress, step 204000
aa86ab9 -
Training in progress, step 203000
49bb3e3 -
Training in progress, step 202000
4aa8eae -
Training in progress, step 201000
51304b4 -
Training in progress, step 200000
9b6a4a2 -
Training in progress, step 199000
f8b8359 -
Training in progress, step 198000
89914e2 -
Training in progress, step 197000
eb54d47