Run this model with HF Jobs
Run bngomez/adaption_llm_instruction_tuning_set 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/bngomez/adaption_llm_instruction_tuning_set. 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/bngomez/adaption_llm_instruction_tuning_set 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.
Instructions to use bngomez/adaption_llm_instruction_tuning_set with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bngomez/adaption_llm_instruction_tuning_set with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openai/gpt-oss-20b") model = PeftModel.from_pretrained(base_model, "bngomez/adaption_llm_instruction_tuning_set") - Notebooks
- Google Colab
- Kaggle
adaption_llm_instruction_tuning_set
Model Training
A LORA adapter for openai/gpt-oss-20b. This model was trained with SFT using Adaption's AutoScientist on the llm_instruction_tuning_set dataset.
AutoScientist Config
{
"job_id": "35ab6be9-11bf-45c6-848e-5d52ac0a5be9",
"training_experiment_id": "9d834e0e-f294-4b2b-b009-1a7339880775",
"original_model_name": "openai/gpt-oss-20b",
"trained_model_name": "adaption_llm_instruction_tuning_set",
"training_method": "sft",
"training_type": "lora",
"data_format": "chat",
"hyperparams": {
"lora": "true",
"lora_r": 64,
"n_evals": 5,
"n_epochs": 5,
"batch_size": "max",
"lora_alpha": 128,
"lora_dropout": 0.05,
"min_lr_ratio": 0.2,
"warmup_ratio": 0.03,
"weight_decay": 0.01,
"learning_rate": 0.0003,
"max_grad_norm": 1,
"base_model_size": "20B",
"train_on_inputs": "false",
"training_method": "sft",
"lr_scheduler_type": "cosine",
"scheduler_num_cycles": 0.5,
"lora_trainable_modules": "q_proj,k_proj,v_proj,o_proj"
}
}
Training Data
The model was trained on 19,431 rows of adapted data with the following domain distribution: data-analysis-visualization (33%), technology (20%), science (15%), math (8%), code (7%), governance (4%), medical (2%), writing-editing-communication (2%), corporate-business (2%), history (1%), academic-education (1%), how-to (1%), legal (1%), agriculture (1%), personal-finance (0%), market-analysis (0%), marketing (0%), hr (0%), other (0%), news (0%), architecture-design (0%), personal-growth (0%), product-advice (0%), geography (0%), religion (0%), career-workplace (0%), games (0%), music (0%), entertainment (0%), parenting-family (0%), travel (0%), language (0%), roleplay (0%), transportation (0%), sports (0%), fitness-sports (0%), dating (0%), cooking (0%), culture (0%), beauty (0%), animal-nature (0%), art (0%), social (0%), real-estate (0%).
Model Evaluation
The model was evaluated on an in-distribution held-out test set as well as a broader domain-specific test set to measure generalization.
| Domain | Win rate vs. base model |
|---|---|
| general | 39% |
How to use
pip install torch transformers peft accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
from peft import PeftModel
BASE = "openai/gpt-oss-20b"
ADAPTER = "bngomez/adaption_llm_instruction_tuning_set"
base = AutoModelForCausalLM.from_pretrained(BASE, dtype="auto", device_map="auto")
# Merge the LoRA weights into the base for faster inference
model = PeftModel.from_pretrained(base, ADAPTER).merge_and_unload()
model.eval()
tokenizer = AutoTokenizer.from_pretrained(BASE)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
messages = [{"role": "user", "content": "Hello!"}]
out = pipe(messages, max_new_tokens=512, do_sample=True, temperature=0.6)
print(out[0]["generated_text"][-1]["content"])
- Downloads last month
- 30
Model tree for bngomez/adaption_llm_instruction_tuning_set
Base model
openai/gpt-oss-20b
