YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
Fine-Tuned LLaMA-3-8B CEFR Model
This is a fine-tuned version of unsloth/llama-3-8b-instruct-bnb-4bit for CEFR-level sentence generation, evaluated with a fine-tuned classifier from Mr-FineTuner/Skripsi_validator_best_model.
- Base Model: unsloth/llama-3-8b-instruct-bnb-4bit
- Fine-Tuning: LoRA with SMOTE-balanced dataset
- Training Details:
- Dataset: CEFR-level sentences with SMOTE and undersampling for balance
- LoRA Parameters: r=32, lora_alpha=32, lora_dropout=0.5
- Training Args: learning_rate=2e-5, batch_size=8, epochs=0.01, cosine scheduler
- Optimizer: adamw_8bit
- Early Stopping: Patience=3, threshold=0.01
- Evaluation Metrics (Exact Matches):
- CEFR Classifier Accuracy: 0.233
- Precision (Macro): 0.229
- Recall (Macro): 0.233
- F1-Score (Macro): 0.221
- Evaluation Metrics (Within 卤1 Level):
- CEFR Classifier Accuracy: 0.883
- Precision (Macro): 0.922
- Recall (Macro): 0.883
- F1-Score (Macro): 0.880
- Other Metrics:
- Perplexity: 14.218
- Diversity (Unique Sentences): 1.000
- Inference Time (ms): 4984.514
- Model Size (GB): 4.8
- Robustness (F1): 0.210
- Confusion Matrix (Exact Matches):
- CSV: confusion_matrix_exact.csv
- Image: confusion_matrix_exact.png
- Confusion Matrix (Within 卤1 Level):
- Per-Class Confusion Metrics (Exact Matches):
- A1: TP=0, FP=2, FN=10, TN=48
- A2: TP=3, FP=6, FN=7, TN=44
- B1: TP=3, FP=11, FN=7, TN=39
- B2: TP=2, FP=15, FN=8, TN=35
- C1: TP=4, FP=9, FN=6, TN=41
- C2: TP=2, FP=3, FN=8, TN=47
- Per-Class Confusion Metrics (Within 卤1 Level):
- A1: TP=5, FP=0, FN=5, TN=50
- A2: TP=8, FP=0, FN=2, TN=50
- B1: TP=10, FP=1, FN=0, TN=49
- B2: TP=10, FP=6, FN=0, TN=44
- C1: TP=10, FP=0, FN=0, TN=50
- C2: TP=10, FP=0, FN=0, TN=50
- Usage:
from transformers import AutoModelForCausalLM, AutoTokenizer model = AutoModelForCausalLM.from_pretrained("Mr-FineTuner/Test_02_llama_trainPercen_myValidator") tokenizer = AutoTokenizer.from_pretrained("Mr-FineTuner/Test_02_llama_trainPercen_myValidator") # Example inference prompt = "<|user|>Generate a CEFR B1 level sentence.<|end|>" inputs = tokenizer(prompt, return_tensors="pt") outputs = model.generate(**inputs, max_length=50) print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Uploaded using huggingface_hub.
- Downloads last month
- -
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
馃檵
Ask for provider support