Run this model with HF Jobs
Run silas114514/PMTX1-2B 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/silas114514/PMTX1-2B. 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/silas114514/PMTX1-2B 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/silas114514/PMTX1-2B. 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/silas114514/PMTX1-2B. 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 silas114514/PMTX1-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use silas114514/PMTX1-2B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-2B") model = PeftModel.from_pretrained(base_model, "silas114514/PMTX1-2B") - Notebooks
- Google Colab
- Kaggle
Prompt Evolution Qwen3.5-2B Adapter (train_aligned)
This repository provides a LoRA adapter fine-tuned from Qwen/Qwen3.5-2B for Chinese prompt-rewriting coaching (train_aligned style).
What this is
- Format: PEFT LoRA adapter (
adapter_model.safetensors) - Base model required:
Qwen/Qwen3.5-2B - Not GGUF / not Ollama one-click by default
Quick Start (Transformers + PEFT)
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
from peft import PeftModel
base_model = "Qwen/Qwen3.5-2B"
adapter_repo = "<your-username>/prompt-evolution-qwen35-2b-adapter"
bnb = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.float16,
bnb_4bit_use_double_quant=True,
)
tok = AutoTokenizer.from_pretrained(base_model, trust_remote_code=True)
if tok.pad_token is None:
tok.pad_token = tok.eos_token or tok.unk_token
model = AutoModelForCausalLM.from_pretrained(
base_model,
quantization_config=bnb,
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True,
)
model = PeftModel.from_pretrained(model, adapter_repo)
model.eval()
prompt = "你是 Prompt Evolution 的提示词纠偏教练。请只做提示词优化,不要直接代做任务。\n原始提示词:写周报,你看着办就行,快一点。"
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=220, do_sample=False)
print(tok.decode(out[0], skip_special_tokens=True))
Training Snapshot
- Prompt style:
train_aligned - Steps: 100
- Selected layers: top 8 transformer layers
- LoRA targets:
q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj - See
run_summary.json,run_config.json,metrics_summary.jsonfor details.
Notes
- Follow base model license/usage terms from
Qwen/Qwen3.5-2B. - This adapter is intended for prompt-rewriting assistance, not fact injection or task substitution.
- Downloads last month
- 8