Downloads · 30 days
4
15% of all-time downloads
MSebaie/AceGPT-7B-tuned-ARCD_QA
AceGPT-7B-tuned-ARCD_QA is a machine learning model from MSebaie. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
AceGPT-7B-tuned-ARCDQA is a fine-tuned version of the AceGPT model, which itself is based on LLaMA2 and fine-tuned for Arabic language tasks. This model has been further fine-tuned on the ARCD (Arabic Reading Comprehe…
Downloads · 30 days
4
15% of all-time downloads
All-time downloads
26
Public
Parameters
6.7B
13.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
AceGPT-7B-tuned-ARCD_QA is a fine-tuned version of the AceGPT model, which itself is based on LLaMA2 and fine-tuned for Arabic language tasks. This model has been further fine-tuned on the ARCD (Arabic Reading Comprehension Dataset) for question-answering tasks.
This model is designed for Arabic question-answering tasks. It can be used to answer questions based on given contexts in Arabic.
Example usage with the Transformers library:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "MSebaie/AceGPT-7B-tuned-ARCD_QA"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
context = "جمال أحمد حمزة خاشقجي (13 أكتوبر 1958، المدينة المنورة - 2 أكتوبر 2018)، صحفي وإعلامي سعودي، رأس عدّة مناصب لعدد من الصحف في السعودية، وتقلّد منصب مستشار، كما أنّه مدير عام قناة العرب الإخبارية سابقًا."
question = 'من هو جمال أحمد حمزة خاشقجي؟'
input_text = f"Context: {context}\n\nQuestion: {question}\n\n"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
answer = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(answer)