Downloads · 30 days
13
4% of all-time downloads
aymanbakiri/MNLP_M3_mcqa_model
MNLP_M3_mcqa_model is a question answering model from aymanbakiri. Use it when the input is a question plus a passage. The card lists the license as apache-2.0.
This model is a merged version of: - Base SFT Model: AnnaelleMyriam/SFTM3model - LoRA Adapter: aymanbakiri/MNLPM3mcqasftmodel
Downloads · 30 days
13
4% of all-time downloads
All-time downloads
329
Public
Parameters
596M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
From the Hugging Face model README
This model is a merged version of:
AnnaelleMyriam/SFT_M3_modelaymanbakiri/MNLP_M3_mcqa_sft_modelThis is a specialized model for Multiple Choice Question Answering (MCQA) tasks, created by:
AnnaelleMyriam/SFT_M3_modelfrom transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("aymanbakiri/MNLP_M3_mcqa_merged_model")
tokenizer = AutoTokenizer.from_pretrained("aymanbakiri/MNLP_M3_mcqa_merged_model")
# Example usage for MCQA
prompt = """Question: What is the capital of France?
Options: (A) London (B) Berlin (C) Paris (D) Madrid
Answer:"""
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=5)
answer = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(answer)
This merged model should provide better performance than the original LoRA adapter while being easier to deploy and use.