Downloads · 30 days
6
20% of all-time downloads
aliMohammad16/woym
woym is a text generation model from aliMohammad16. Use it when you need the model to write or continue text. It is set up for peft.
This model is a fine-tuned version of TinyLlama-1.1B-Chat-v1.0 specialized for educational interactions with young children. It aims to provide helpful, age-appropriate responses to questions and prompts from primary…
Downloads · 30 days
6
20% of all-time downloads
All-time downloads
30
Public
Repo size
5 MB
Likes
1
Public
Click a slice to open those files.
.safetensors4.5 MB · 52%
From the Hugging Face model README
This model is a fine-tuned version of TinyLlama-1.1B-Chat-v1.0 specialized for educational interactions with young children. It aims to provide helpful, age-appropriate responses to questions and prompts from primary school students.
This model was created by fine-tuning the TinyLlama-1.1B-Chat-v1.0 base model using the PEFT (Parameter-Efficient Fine-Tuning) library with QLoRA techniques. The fine-tuning focused on optimizing the model for educational content specifically tailored for young children, enhancing its ability to provide clear, simple, and instructional responses suitable for primary education.
This model is designed for direct interaction with primary school children or for educational applications targeting young learners. It can be used to:
The model can be integrated into:
This model is not designed for:
Use the code below to get started with the model:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained("path/to/your/model")
# Load the model
model = AutoModelForCausalLM.from_pretrained("path/to/your/model")
# Generate text
def generate_text(prompt):
formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(formatted_prompt, return_tensors="pt").to("cuda" if torch.cuda.is_available() else "cpu")
output = model.generate(
**inputs,
max_length=512,
temperature=0.7,
top_p=0.9,
do_sample=True,
repetition_penalty=1.2
)
generated_text = tokenizer.decode(output[0], skip_special_tokens=False)
assistant_response = generated_text.split("<|im_start|>assistant\n")[-1].split("<|im_end|>")[0]
return assistant_response
# Example usage
prompt = "Can you explain what photosynthesis is in simple terms?"
response = generate_text(prompt)
print(response)
This model was fine-tuned on the "ajibawa-2023/Education-Young-Children" dataset, which contains educational interactions between teachers and primary school students. The dataset includes a variety of educational topics appropriate for young learners.
The model was fine-tuned using Parameter-Efficient Fine-Tuning (PEFT) with QLoRA technique to reduce memory usage while maintaining quality.
The model was evaluated on a held-out subset of the "ajibawa-2023/Education-Young-Children" dataset.
Evaluation considered:
[You can add specific evaluation results here when available]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
The model uses the TinyLlama architecture (1.1B parameters) with additional LoRA adapters applied to the attention layers. The objective was next-token prediction using a causal language modeling approach, specialized for educational content.
Mohammad Ali
GitHub: https://github.com/mohammad17ali mailto:[email protected]