Downloads · 30 days
22
3% of all-time downloads
health360/Sehty360-llama-3-8b-arabic-health-instruct
Sehty360-llama-3-8b-arabic-health-instruct is a text generation model from health360. Use it when you need the model to write or continue text. It is set up for transformers.
from transformers import AutoTokenizer, AutoModelForCausalLM import torch tokenizer = AutoTokenizer.frompretrained("health360/Sehty360-llama-3-8b-arabic-health-instruct") model = AutoModelForCausalLM.frompretrained("h…
Downloads · 30 days
22
3% of all-time downloads
All-time downloads
750
Public
Parameters
8B
32.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors32.1 GB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModelForCausalLM import torch tokenizer = AutoTokenizer.from_pretrained("health360/Sehty360-llama-3-8b-arabic-health-instruct") model = AutoModelForCausalLM.from_pretrained("health360/Sehty360-llama-3-8b-arabic-health-instruct", device_map='auto', torch_dtype=torch.bfloat16)
text = """
سلام عليكم اشعر بضيق في التنفس واعاني من كثرة البلغم
""" stop_word = "###END###"
inputs = tokenizer(text, return_tensors='pt').to('cuda:0')
inputs.pop("token_type_ids", None)
outputs = model.generate( **inputs, max_new_tokens=512, do_sample=False, early_stopping=True, temperature=0.8, top_k=50, top_p=0.95, num_return_sequences=1, eos_token_id=tokenizer.encode(stop_word, add_special_tokens=False)[0] # Set EOS token to your stop word ) outputs = tokenizer.decode(outputs[0], skip_special_tokens=True) print(outputs)
سلام عليكم اشعر بضيق في التنفس واعاني من كثرة البلغم
وعليكم السلام! أنا هنا لمساعدتك. ضيق التنفس مع وجود بلغم يمكن أن يكون مؤشراً على وجود عدوى في الرئة أو القصبات.
أوصي بأن تقوم بزيارة طبيب مختص بأمراض الرئة والصدرية للحصول على تشخيص دقيق. يمكن للطبيب أن يطلب إجراء فحوصات دم، أشعة على الصدر، أو حتى اختبارات أخرى مثل تخطيط الرئة لتحديد نوع العدوى والمضاد المناسب لها.
إذا كنت ترغب، يمكنني مساعدتك في العثور على طبيب مختص بأمراض الرئة والصدرية في منطقتك. هل تود معرفة معلومات عن الأطباء المتاحين في منطقتك؟
[More Information Needed]
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]