Downloads · 30 days
0
sahil239/chatbot-v2
chatbot-v2 is a machine learning model from sahil239. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
chatbot-v2 is a lightweight, instruction-following conversational AI model based on TinyLLaMA and fine-tuned using LoRA adapters. It has been trained on a carefully curated mixture of open datasets covering assistant-…
Downloads · 30 days
0
Access
Public
Updated Aug 16, 2025
Repo size
18 MB
Likes
0
Public
Click a slice to open those files.
.safetensors18 MB · 83%
From the Hugging Face model README
chatbot-v2 is a lightweight, instruction-following conversational AI model based on TinyLLaMA and fine-tuned using LoRA adapters. It has been trained on a carefully curated mixture of open datasets covering assistant-like responses, code generation, summarization, safety alignment, and dialog reasoning.
This model is ideal for embedding into mobile or edge apps with low-resource inference needs or running via an API.
TinyLlama/TinyLlama-1.1B-Chatr=16alpha=32dropout=0.05q_proj, v_projThe model was fine-tuned on the following instruction-following, summarization, and dialogue datasets:
tatsu-lab/alpaca — Stanford Alpaca datasetdatabricks/databricks-dolly-15k — Dolly instruction dataknkarthick/dialogsum — Summarization of dialogsAnthropic/hh-rlhf — Harmless/helpful/honest alignment dataOpenAssistant/oasst1 — OpenAssistant dialoguesnomic-ai/gpt4all_prompt_generations — Instructional prompt-response pairssahil2801/CodeAlpaca-20k — Programming/code generation instructionsOpen-Orca/OpenOrca — High-quality responses to complex questionsThis model is best suited for:
Instruction:
Explain the difference between supervised and unsupervised learning.
Response:
Supervised learning uses labeled data to train models, while unsupervised learning uses unlabeled data to discover patterns or groupings in the data…
To use this model, load the base TinyLLaMA model and apply the LoRA adapters:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = AutoModelForCausalLM.from_pretrained(
"TinyLlama/TinyLlama-1.1B-Chat",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat")
model = PeftModel.from_pretrained(base_model, "sahil239/chatbot-v2")
📄 License
This model is distributed under the Apache 2.0 License.
🙏 Acknowledgements
Thanks to the open-source datasets and projects: Alpaca, Dolly, OpenAssistant, Anthropic, OpenOrca, CodeAlpaca, GPT4All, and Hugging Face.