Views
No views yet
| Method | MAE |
|---|---|
| Fine-tuned Llama 3.1 | $47 |
| GPT-4o Mini | $76 |
| Random Forest + WordVec | $97 |
| Linear Regression + WordVec | $121 |
| Average Price Prediction | $146 |
| Random Guess | $350 |
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3# Load the model
4tokenizer = AutoTokenizer.from_pretrained("SHAH-MEER/llama-pricer")
5model = AutoModelForCausalLM.from_pretrained("SHAH-MEER/llama-pricer")
6
7# Example usage
8inputs = tokenizer("Predict the Amazon price for this product:", return_tensors="pt")
9outputs = model.generate(**inputs, max_length=100)
10print(tokenizer.decode(outputs[0]))1@misc{llama-pricer,
2 title={Llama Pricer: Fine-tuned Llama 3.1 for Amazon Product Price Prediction},
3 author={SHAH-MEER},
4 year={2024},
5 publisher={Hugging Face},
6 url={https://huggingface.co/SHAH-MEER/llama-pricer}
7}