Instructions to use pulkit-thukral/title-optimizer-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use pulkit-thukral/title-optimizer-sft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B") model = PeftModel.from_pretrained(base_model, "pulkit-thukral/title-optimizer-sft") - Notebooks
- Google Colab
- Kaggle
Download run_config.json from pulkit-thukral/title-optimizer-sft: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/pulkit-thukral/title-optimizer-sft/resolve/main/run_config.json
- Command line
-
hf download hf://pulkit-thukral/title-optimizer-sft/run_config.json
-
curl -L -o run_config.json https://huggingface.co/pulkit-thukral/title-optimizer-sft/resolve/main/run_config.json
884 Bytes
| { | |
| "stage": "sft", | |
| "base_model": "Qwen/Qwen3-1.7B", | |
| "model": { | |
| "base_model": "Qwen/Qwen3-1.7B", | |
| "load_in_4bit": false, | |
| "lora_r": 16, | |
| "lora_alpha": 32, | |
| "lora_dropout": 0.05, | |
| "lora_target_modules": "all-linear" | |
| }, | |
| "train_file": "data/processed/sft_train.jsonl", | |
| "eval_file": "data/processed/sft_val.jsonl", | |
| "init_adapter": null, | |
| "output_dir": "outputs/sft", | |
| "learning_rate": 0.0002, | |
| "num_train_epochs": 1, | |
| "max_steps": -1, | |
| "per_device_train_batch_size": 2, | |
| "gradient_accumulation_steps": 8, | |
| "max_length": 1024, | |
| "logging_steps": 10, | |
| "save_steps": 500, | |
| "seed": 42, | |
| "report_to": "none", | |
| "bf16": true, | |
| "beta": 0.1, | |
| "num_generations": 8, | |
| "max_completion_length": 32, | |
| "temperature": 0.9, | |
| "reward_weights": { | |
| "length": 1.0, | |
| "style": 0.5, | |
| "faithfulness": 2.0, | |
| "judge": 0.0 | |
| }, | |
| "max_train_samples": 5000 | |
| } |