Downloads · 30 days
12
20% of all-time downloads
quantumsquatan/egypt-llm-finetune
egypt-llm-finetune is a text generation model from quantumsquatan. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Model ID: quantumsquatan/egypt-llm-finetune
Downloads · 30 days
12
20% of all-time downloads
All-time downloads
61
Public
Repo size
4.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors4.5 MB · 55%
From the Hugging Face model README
Model ID: quantumsquatan/egypt-llm-finetune
This is an educational LoRA fine-tune of TinyLlama created while learning from the Hugging Face LLM Course in Egypt. It is designed for simple Computer Science, AI, programming, and student-life explanations in English with Egyptian Arabic context.
TinyLlama/TinyLlama-1.1B-Chat-v1.0q_proj, v_projCAUSAL_LMThis model can be used as a lightweight educational chat model for:
This adapter can be loaded on top of TinyLlama/TinyLlama-1.1B-Chat-v1.0 in educational demos, notebooks, small experiments, and student projects. It can also be used as a starting point for further fine-tuning on larger, higher-quality Arabic or CS-focused instruction datasets.
This model should not be used for:
This is a first educational fine-tune trained on a small custom dataset of 41 examples. Because the dataset is small, the model can overfit, hallucinate, repeat patterns, or answer outside its training scope. The base model is also small, so reasoning quality, factual accuracy, Arabic fluency, and instruction following may be limited.
Known limitations:
Use this model for learning, demos, and experimentation. Verify important information with reliable sources. For better results, evaluate outputs manually, add a larger dataset, and test with held-out prompts before any serious downstream use.
This repository contains a PEFT LoRA adapter. Load it with the base model and tokenizer:
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
from peft import PeftModel
base_model_id = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
adapter_id = "quantumsquatan/egypt-llm-finetune"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
device_map="auto"
)
model = PeftModel.from_pretrained(base_model, adapter_id)
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer
)
messages = [
{"role": "user", "content": "Explain neural networks simply."}
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
print(pipe(prompt, max_new_tokens=200, do_sample=True, temperature=0.7)[0]["generated_text"])
The model was trained on 41 custom examples focused on:
The dataset is not published as a separate Hugging Face dataset card in this repository.
The model was fine-tuned using supervised fine-tuning with PEFT LoRA adapters on top of TinyLlama. The adapter targets attention projection modules q_proj and v_proj.
The examples were formatted as chat/instruction-style text for causal language modeling. Tokenization uses the TinyLlama/Llama tokenizer with a maximum model length of 2048 tokens.
Published adapter configuration:
r): 16q_proj, v_projCAUSAL_LMTinyLlama/TinyLlama-1.1B-Chat-v1.0Other run-specific trainer settings such as exact epoch count, batch size, optimizer, hardware, and wall-clock training time were not published in the model repository.
No formal held-out test set was published. The model should be evaluated manually with prompts covering CS, AI, programming, English, Arabic, and mixed English-Arabic use.
Recommended evaluation factors:
No benchmark metrics are published. Suggested future metrics include human preference ratings, exactness on small CS QA tests, hallucination checks, and qualitative comparison against the base TinyLlama model.
No formal benchmark results are published yet.
This model is best understood as a learning milestone and a compact PEFT adapter experiment, not as a production-grade assistant.
No interpretability or internal model examination has been published.
Formal carbon accounting was not recorded. Because this is a small LoRA adapter fine-tune on TinyLlama, the compute footprint is expected to be much lower than full-model fine-tuning, but exact emissions cannot be claimed without hardware and runtime logs.
The base architecture is TinyLlama, a Llama-style causal decoder-only language model. This repository provides a LoRA adapter trained for next-token prediction on instruction/chat-style educational examples.
The exact training infrastructure is not published in the repository.
Not published.
Known software stack from repository metadata:
No paper has been published for this fine-tune. If you use it, cite the repository:
@misc{quantumsquatan_egypt_llm_finetune_2026,
title = {Egypt LLM Fine-Tune},
author = {quantumsquatan},
year = {2026},
url = {https://huggingface.co/quantumsquatan/egypt-llm-finetune}
}
This model is part of a learning project around Hugging Face, LLM fine-tuning, and AI education in Egypt.
quantumsquatan, with README/model-card structuring assistance.
Use the Hugging Face model page or GitHub repository issues for contact.