Instructions to use Shell2334/info642-travel-classifier-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Shell2334/info642-travel-classifier-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0") model = PeftModel.from_pretrained(base_model, "Shell2334/info642-travel-classifier-lora") - Notebooks
- Google Colab
- Kaggle
Download evaluation_results.json from Shell2334/info642-travel-classifier-lora: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/Shell2334/info642-travel-classifier-lora/resolve/main/evaluation_results.json
- Command line
-
hf download hf://Shell2334/info642-travel-classifier-lora/evaluation_results.json
-
curl -L -o evaluation_results.json https://huggingface.co/Shell2334/info642-travel-classifier-lora/resolve/main/evaluation_results.json
1.08 kB
| { | |
| "base_model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0", | |
| "training_rows": 224, | |
| "test_rows": 56, | |
| "categories": [ | |
| "NEW_TRIP", | |
| "CHANGE_FLIGHT", | |
| "CHANGE_HOTEL", | |
| "CHANGE_ATTRACTION", | |
| "CHANGE_RESTAURANT", | |
| "MULTI_CHANGE", | |
| "OTHER_OR_UNCLEAR" | |
| ], | |
| "test_accuracy": 0.9821428571428571, | |
| "confusion_matrix": [ | |
| [ | |
| 8, | |
| 0, | |
| 0, | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| [ | |
| 0, | |
| 8, | |
| 0, | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| [ | |
| 0, | |
| 0, | |
| 8, | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| [ | |
| 0, | |
| 0, | |
| 0, | |
| 8, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| [ | |
| 0, | |
| 0, | |
| 0, | |
| 0, | |
| 8, | |
| 0, | |
| 0 | |
| ], | |
| [ | |
| 0, | |
| 0, | |
| 0, | |
| 1, | |
| 0, | |
| 7, | |
| 0 | |
| ], | |
| [ | |
| 0, | |
| 0, | |
| 0, | |
| 0, | |
| 0, | |
| 0, | |
| 8 | |
| ] | |
| ], | |
| "training_epochs": 3, | |
| "training_batch_size": 8, | |
| "learning_rate": 0.0002, | |
| "lora_r": 8, | |
| "lora_alpha": 16, | |
| "lora_dropout": 0.05, | |
| "target_modules": [ | |
| "q_proj", | |
| "k_proj", | |
| "v_proj", | |
| "o_proj" | |
| ] | |
| } |