Views
No views yet
README.md using TRL and the costadev00/pricer-data dataset.1from transformers import pipeline
2
3prompt = (
4 "You are a pricing assistant. "
5 "Product description: Apple iPhone 15 Pro, 256GB, new in box.\n"
6 "Price is $"
7)
8
9pipe = pipeline(
10 "text-generation",
11 model="costadev00/pricer-2025-12-01_15.09.36",
12 device_map="auto",
13)
14result = pipe(
15 [{"role": "user", "content": prompt}],
16 max_new_tokens=16,
17 return_full_text=False,
18)
19print(result[0]["generated_text"])Note: load the base model plus LoRA adapter viapeftif you downloaded the adapter-only weights.
costadev00/pricer-data (Amazon-style product descriptions + prices) split into train/test as hosted on the HF Hub.trl.SFTTrainer.r=32, alpha=64, dropout=0.1, target modules q_proj,k_proj,v_proj,o_projpaged_adamw_32bit1@misc{costadev00_llama3_price_predictor_lora_2025,
2 author = {MONTEIRO, Matheus Costa},
3 title = {Llama-3 Price Predictor Fine-Tuning (LoRA)},
4 year = {2025},
5 publisher = {GitHub},
6 journal = {GitHub repository},
7 howpublished = {\url{https://github.com/costadev00/fine-tuning-llama3-8b}},
8 note = {Accessed: 2025-12-29}
9}license above with the actual license governing your fine-tuned weights (e.g., apache-2.0, llama3-community, or custom terms). Ensure compliance with Meta’s Llama 3.1 usage policy.