YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

Fine-Tuned Mistral-7B CEFR Model

This is a fine-tuned version of unsloth/mistral-7b-instruct-v0.3-bnb-4bit for CEFR-level sentence generation, evaluated with a fine-tuned classifier from Mr-FineTuner/Skripsi_validator_best_model.

  • Base Model: unsloth/mistral-7b-instruct-v0.3-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.333
    • Precision (Macro): 0.111
    • Recall (Macro): 0.333
    • F1-Score (Macro): 0.167
  • Evaluation Metrics (Within 卤1 Level):
    • CEFR Classifier Accuracy: 0.667
    • Precision (Macro): 0.500
    • Recall (Macro): 0.667
    • F1-Score (Macro): 0.556
  • Other Metrics:
    • Perplexity: 2.658
    • Diversity (Unique Sentences): 0.083
    • Inference Time (ms): 6376.960
    • Model Size (GB): 4.1
    • Robustness (F1): 0.158
  • Confusion Matrix (Exact Matches):
  • Confusion Matrix (Within 卤1 Level):
  • Per-Class Confusion Metrics (Exact Matches):
    • A1: TP=0, FP=0, FN=10, TN=50
    • A2: TP=0, FP=0, FN=10, TN=50
    • B1: TP=10, FP=20, FN=0, TN=30
    • B2: TP=10, FP=20, FN=0, TN=30
    • C1: TP=0, FP=0, FN=10, TN=50
    • C2: TP=0, FP=0, FN=10, TN=50
  • Per-Class Confusion Metrics (Within 卤1 Level):
    • A1: TP=0, FP=0, FN=10, TN=50
    • A2: TP=10, FP=0, FN=0, TN=50
    • B1: TP=10, FP=10, FN=0, TN=40
    • B2: TP=10, FP=10, FN=0, TN=40
    • C1: TP=10, FP=0, FN=0, TN=50
    • C2: TP=0, FP=0, FN=10, TN=50
  • Usage:
    from transformers import AutoModelForCausalLM, AutoTokenizer
    
    model = AutoModelForCausalLM.from_pretrained("Mr-FineTuner/Test_01_withNewEval_andWithin-1_mistral_skripsi_classifier")
    tokenizer = AutoTokenizer.from_pretrained("Mr-FineTuner/Test_01_withNewEval_andWithin-1_mistral_skripsi_classifier")
    
    # 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
5
Safetensors
Model size
7B params
Tensor type
F32
BF16
U8
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support