Downloads · 30 days
49
8% of all-time downloads
nirajandhakal/LLaMA3-Reasoning
LLaMA3-Reasoning is a text generation model from nirajandhakal. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Downloads · 30 days
49
8% of all-time downloads
All-time downloads
590
Public
Parameters
157M
626 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors626 MB · 99%
From the Hugging Face model README
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Running Inference:
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
tokenizer = AutoTokenizer.from_pretrained("nirajandhakal/LLaMA3-Reasoning")
model = AutoModelForCausalLM.from_pretrained("nirajandhakal/LLaMA3-Reasoning")
pipe = pipeline("text-generation", model="nirajandhakal/LLaMA3-Reasoning", truncation=True)
# Define a prompt for the model
prompt = "What are the benefits of using artificial intelligence in healthcare?"
# Generate text based on the prompt
generated_text = pipe(prompt, max_length=200)
# Print the generated text
print(generated_text[0]['generated_text'])