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 balanced dataset
  • Training Details:
    • Dataset: CEFR-level sentences
    • LoRA Parameters: r=32, lora_alpha=32, lora_dropout=0.5
    • Training Args: learning_rate=1e-5, batch_size=8, epochs=0.01, cosine scheduler
    • Optimizer: adamw_8bit
    • Early Stopping: Patience=2, threshold=0.01
  • Evaluation Metrics (Exact Matches):
    • CEFR Classifier Accuracy: 0.167
    • Precision (Macro): 0.128
    • Recall (Macro): 0.167
    • F1-Score (Macro): 0.142
  • Evaluation Metrics (Within ±1 Level):
    • CEFR Classifier Accuracy: 0.650
    • Precision (Macro): 0.775
    • Recall (Macro): 0.650
    • F1-Score (Macro): 0.637
  • Other Metrics:
    • Perplexity: 2.734
    • Diversity (Unique Sentences): 1.000
    • Inference Time (ms): 5855.636
    • Model Size (GB): 8.0 # Updated to reflect PyTorch format
    • Robustness (F1): 0.135
  • Confusion Matrix (Exact Matches):
  • Confusion Matrix (Within ±1 Level):
  • Per-Class Confusion Metrics (Exact Matches):
    • A1: TP=0, FP=3, FN=10, TN=47
    • A2: TP=4, FP=9, FN=6, TN=41
    • B1: TP=3, FP=8, FN=7, TN=42
    • B2: TP=2, FP=21, FN=8, TN=29
    • C1: TP=1, FP=9, FN=9, TN=41
    • C2: TP=0, FP=0, FN=10, TN=50
  • Per-Class Confusion Metrics (Within ±1 Level):
    • A1: TP=3, FP=0, FN=7, TN=50
    • A2: TP=7, FP=3, FN=3, TN=47
    • B1: TP=10, FP=5, FN=0, TN=45
    • B2: TP=9, FP=12, FN=1, TN=38
    • C1: TP=6, FP=1, FN=4, TN=49
    • C2: TP=4, FP=0, FN=6, TN=50
  • Usage:
    from transformers import AutoModelForCausalLM, AutoTokenizer
    
    model = AutoModelForCausalLM.from_pretrained("Mr-FineTuner/With_synthetic_Dataset_llama-1epoch")
    tokenizer = AutoTokenizer.from_pretrained("Mr-FineTuner/With_synthetic_Dataset_llama-1epoch")
    
    # 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

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support