Downloads · 30 days
2
3% of all-time downloads
muhammed-afsal-p-m/afsal_llm
afsal_llm is a text generation model from muhammed-afsal-p-m. Use it when you need the model to write or continue text. It is set up for transformers.
A custom language model built on top of Llama-3.1-8B, provided in SAFETENSORS format. Designed for general text generation, conversational tasks, and experimentation with custom LLM pipelines.
Downloads · 30 days
2
3% of all-time downloads
All-time downloads
74
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
A custom language model built on top of Llama-3.1-8B, provided in SAFETENSORS format.
Designed for general text generation, conversational tasks, and experimentation with custom LLM pipelines.
This model is a decoder-only transformer derived from Llama-3.1-8B, adapted for general-purpose text generation.
Hugging Face Repository:
https://huggingface.co/muhammed-afsal-p-m/afsal_llm
Base Model Reference:
Llama-3.1-8B (Meta)
Chat Template:
chat_template.jinja — supports structured conversational prompting.
Not recommended for high-risk domains without human oversight:
Recommendation: All outputs should be reviewed by a human in any production workflow.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "muhammed-afsal-p-m/afsal_llm"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True
)
prompt = "Hello, can you tell me something interesting?"
inputs = tokenizer(prompt, return_tensors="pt")
output = model.generate(
inputs.input_ids,
max_new_tokens=150,
)
print(tokenizer.decode(output[0], skip_special_tokens=True))