Run this model with HF Jobs
Run cringeyburger/ppo-gpt2-prefix-alignment 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 to fine-tune https://huggingface.co/cringeyburger/ppo-gpt2-prefix-alignment. 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/cringeyburger/ppo-gpt2-prefix-alignment 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/cringeyburger/ppo-gpt2-prefix-alignment. 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/cringeyburger/ppo-gpt2-prefix-alignment. 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 cringeyburger/ppo-gpt2-prefix-alignment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cringeyburger/ppo-gpt2-prefix-alignment with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("gpt2-medium") model = PeftModel.from_pretrained(base_model, "cringeyburger/ppo-gpt2-prefix-alignment") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from cringeyburger/ppo-gpt2-prefix-alignment: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/cringeyburger/ppo-gpt2-prefix-alignment/resolve/main/adapter_config.json
- Command line
-
hf download hf://cringeyburger/ppo-gpt2-prefix-alignment/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/cringeyburger/ppo-gpt2-prefix-alignment/resolve/main/adapter_config.json
455 Bytes
| { | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "gpt2-medium", | |
| "encoder_hidden_size": 1024, | |
| "inference_mode": true, | |
| "modules_to_save": null, | |
| "num_attention_heads": 16, | |
| "num_layers": 24, | |
| "num_transformer_submodules": 1, | |
| "num_virtual_tokens": 30, | |
| "peft_type": "PREFIX_TUNING", | |
| "peft_version": "0.18.1", | |
| "prefix_projection": false, | |
| "revision": null, | |
| "task_type": "CAUSAL_LM", | |
| "token_dim": 1024 | |
| } |