Downloads · 30 days
32
20% of all-time downloads
youssef03/llama_3.2_3B_abductive
llama_3.2_3B_abductive is a text generation model from youssef03. Use it when you need the model to write or continue text. The card lists the license as mit.
This model is a fine-tuned version of meta-llama/Llama-3.1-8B-Instruct specialized for abductive commonsense reasoning in Arabic. It is designed to generate plausible explanations for narrative scenarios.
Downloads · 30 days
32
20% of all-time downloads
All-time downloads
157
Public
Repo size
14.9 GB
Likes
0
Public
Click a slice to open those files.
.bin6.4 GB · 43%
From the Hugging Face model README
This model is a fine-tuned version of meta-llama/Llama-3.1-8B-Instruct specialized for abductive commonsense reasoning in Arabic. It is designed to generate plausible explanations for narrative scenarios.
This model leverages the powerful base of Meta's Llama 3.1 8B Instruct and fine-tunes it to understand and perform abductive reasoning in Arabic. Abductive reasoning is a form of logical inference that aims to find the simplest and most likely explanation for a set of observations.
The model was trained on an Arabic translation of the ART (Abductive Reasoning in narrative Text) dataset, which contains over 20,000 commonsense narrative contexts and 200,000 corresponding explanations. This allows the model to excel at tasks requiring the generation or identification of plausible hypotheses based on incomplete information presented in Arabic text.
The model is intended for direct use in generating and evaluating commonsense explanations in Arabic. It can be prompted with a scenario (a set of observations) to generate a plausible hypothesis that explains the situation.
This model can serve as a foundational component for more complex applications, including:
Implement content moderation and human-in-the-loop review for public-facing systems. Treat outputs as hypotheses, not facts.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "[Your Hugging Face Model ID]"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
observation1 = "علي دخل المطبخ."
observation2 = "بعد فترة وجيزة، انبعثت رائحة دخان."
prompt = f"Observation 1: {observation1}\nObservation 2: {observation2}\nHypothesis:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=50, num_return_sequences=1)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)
Fine-tuned on an Arabic translation of the ART dataset (Bhagavatula et al. 2019) with ~20,000 narrative contexts and ~200,000 hypotheses.
Supervised fine-tuning (SFT) objective using instruction-style prompts.
Held-out portion of Arabic-translated ART dataset.
Optional breakdown by reasoning type: causal, temporal, social.
| Metric | Test Set Result |
|---|---|
| Accuracy (αNLI) | [More Information Needed] |
| ROUGE-L (αNLG) | [More Information Needed] |
[More Information Needed]
[More Information Needed]
Decoder-only transformer fine-tuned with instruction tuning for abductive reasoning.
NVIDIA T4 GPU (Google Colab)
@inproceedings{bhagavatula2020abductive,
title={Abductive Commonsense Reasoning},
author={Chandra Bhagavatula and Ronan Le Bras and Chaitanya Malaviya and Keisuke Sakaguchi and Ari Holtzman and Hannah Rashkin and Doug Downey and Wen-tau Yih and Yejin Choi},
booktitle={International Conference on Learning Representations},
year={2020},
url={https://openreview.net/forum?id=BygP6T4KPS}
}
[More Information Needed]
Youssef Maged
[Your Email or Contact Information]