Run this model with HF Jobs
Run BluebrainAI/gpt2-wikitext 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/BluebrainAI/gpt2-wikitext. 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/BluebrainAI/gpt2-wikitext 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/BluebrainAI/gpt2-wikitext. 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/BluebrainAI/gpt2-wikitext. 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 BluebrainAI/gpt2-wikitext with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BluebrainAI/gpt2-wikitext with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BluebrainAI/gpt2-wikitext")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BluebrainAI/gpt2-wikitext") model = AutoModelForCausalLM.from_pretrained("BluebrainAI/gpt2-wikitext", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BluebrainAI/gpt2-wikitext with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BluebrainAI/gpt2-wikitext" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BluebrainAI/gpt2-wikitext", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BluebrainAI/gpt2-wikitext
- SGLang
How to use BluebrainAI/gpt2-wikitext 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 "BluebrainAI/gpt2-wikitext" \ --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": "BluebrainAI/gpt2-wikitext", "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 "BluebrainAI/gpt2-wikitext" \ --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": "BluebrainAI/gpt2-wikitext", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BluebrainAI/gpt2-wikitext with Docker Model Runner:
docker model run hf.co/BluebrainAI/gpt2-wikitext
Commit History
-
Model save
Verified signatureee61125 -
Training in progress, step 8910
Verified signature65483c4 -
Training in progress, step 8500
Verified signature4a69c64 -
Training in progress, step 8000
Verified signaturecbb0d50 -
Training in progress, step 7500
Verified signaturebc5646f -
Training in progress, step 7000
Verified signaturef30e154 -
Training in progress, step 6500
Verified signaturef7e44e6 -
Training in progress, step 6000
Verified signaturee79827a -
Training in progress, step 5500
Verified signature7a2128f -
Training in progress, step 5000
Verified signature067a7b2 -
Training in progress, step 4500
Verified signaturef88e047 -
Training in progress, step 4000
Verified signature3a87212 -
Training in progress, step 3500
Verified signature1449bd4 -
Training in progress, step 3000
Verified signature2e99c24 -
Training in progress, step 2000
Verified signatureb42b182 -
Training in progress, step 1500
Verified signature325f2ec -
Training in progress, step 500
Verified signaturefa874a5
-
Model save
Verified signature86a95c4 -
Training in progress, step 8910
Verified signature9af1655 -
Training in progress, step 8500
Verified signature7c537d0 -
Training in progress, step 8000
Verified signature347e770 -
Training in progress, step 7500
Verified signaturee1ae054 -
Training in progress, step 7000
Verified signature3b0027c -
Training in progress, step 6500
Verified signature6f48bdf -
Training in progress, step 6000
Verified signaturebbcd85c -
Training in progress, step 5500
Verified signature40f8140 -
Training in progress, step 5000
Verified signature7e0a2ce -
Training in progress, step 4500
Verified signaturebd3df47 -
Training in progress, step 4000
Verified signature86dba5e -
Training in progress, step 3500
Verified signature54b2fe4 -
Training in progress, step 3000
Verified signature06a30e0 -
Training in progress, step 2500
Verified signature231ba87 -
Training in progress, step 2000
Verified signature7b2e040 -
Training in progress, step 1500
Verified signaturec0a8d8b -
Training in progress, step 1000
Verified signature680e05b -
Training in progress, step 500
Verified signature080c557
-
initial commit
Verified signature5768efd