The Persian-llm-fibonacci-1-7b-chat.P1_0 is a 7 billion parameter language model (LLM) specifically designed for Persian-language chat and text interactions. Developed as part of the FibonacciAI project, this model is optimized to generate fluent and natural Persian text, making it ideal for conversational AI applications.
Built on advanced language model architectures (e.g., GPT), it excels in tasks like chat, content generation, question answering, and more. 🚀
To use this model, you can leverage the transformers
library. Here's a quick example:
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load the model and tokenizer
model_name = "fibonacciai/Persian-llm-fibonacci-1-7b-chat.P1_0"
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Generate a response to an input text
input_text = "سلام، چطوری؟"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=50)
# Decode the output to text
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)