Downloads · 30 days
33
100% of all-time downloads
DiwakarTalwar/Anvi-0.01-test
Anvi-0.01-test is a text generation model from DiwakarTalwar. 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.
Anvi is a lightweight QLoRA fine-tuned supervisor model based on Qwen/Qwen2.5-0.5B-Instruct.
Downloads · 30 days
33
100% of all-time downloads
All-time downloads
33
Public
Repo size
46.7 MB
Likes
1
Public
Click a slice to open those files.
.safetensors35.2 MB · 75%
From the Hugging Face model README
Anvi is a lightweight QLoRA fine-tuned supervisor model based on Qwen/Qwen2.5-0.5B-Instruct.
The goal of Anvi is not to act as the final conversational assistant. Instead, it analyzes a user's request and produces a structured routing decision that can be passed to a larger AI system.
Anvi 0.01 is an early experimental version of the Anvi supervisor/routing system.
Anvi is a small language model fine-tuned with QLoRA for request classification and capability routing.
It is trained on examples covering:
The intended architecture is to use Anvi as a lightweight decision-making layer before specialized models and external tools are invoked.
Anvi is intended to receive a natural-language request and determine which capability should handle it.
A typical routing decision may look like:
{
"task": "programming",
"tool": null,
"model": "coding_expert"
}
The exact routing schema is application-specific and may evolve in future versions.
Anvi is intended to be integrated into a larger AI system where its output is used to select specialized models, tools, or workflows.
User request
|
v
Anvi
|
+----> math_expert
+----> coding_expert
+----> vision_expert
+----> weather tool
+----> database tool
+----> memory system
+----> multi-step workflow
Anvi's primary role is routing and classification rather than direct tool execution.
This is an experimental routing model and should not be treated as a fully capable general-purpose assistant or as an authoritative source of factual information.
It should not be relied upon by itself for:
This is an early experimental release.
Known limitations include:
The model should therefore be considered an experimental checkpoint rather than a production-ready router.
For downstream applications, validate the model's output before executing any tool or workflow.
Recommended validation:
Anvi is distributed as a PEFT/QLoRA adapter. The base model is required to load the adapter.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_name = "Qwen/Qwen2.5-0.5B-Instruct"
adapter_name = "DiwakarTalwar/Anvi-0.01-test"
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
model = AutoModelForCausalLM.from_pretrained(
base_model_name,
device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter_name)
The inference configuration may need to be adjusted for the available hardware and quantization setup.
The model was fine-tuned on a custom routing dataset containing natural-language requests paired with structured routing decisions.
The dataset covers programming, debugging, mathematics, weather, database queries, vision/OCR, translation, memory, task management, multi-step requests, and clarification.
The model was fine-tuned using QLoRA, allowing a relatively small set of trainable adapter parameters while keeping the base model frozen.
The exported model uses PEFT-compatible LoRA weights.
Detailed hyperparameters are not documented in this release. Future versions may document learning rate, batch size, epochs, sequence length, optimizer, LoRA rank, LoRA alpha, dropout, and other training settings.
Training hardware and total training time are not documented in this release.
Formal held-out evaluation results have not yet been published for this version.
Manual testing has been performed on routing prompts covering programming, debugging, mathematics, weather, SQL/database tasks, and structured-output instructions.
Future Anvi evaluations are intended to measure:
No numerical benchmark results are claimed for this release.
Status: Experimental / preliminary
The current release demonstrates that QLoRA fine-tuning changes the model's instruction-following and routing behavior, but the routing protocol is not yet perfectly consistent.
A dedicated held-out routing benchmark is planned for future versions.
Anvi is based on Qwen2.5-0.5B-Instruct and uses parameter-efficient LoRA fine-tuning.
The training objective is to map user requests to structured routing decisions rather than directly solve every request itself.
If you use Anvi in a project, reference the model repository:
DiwakarTalwar/Anvi-0.01-test
QLoRA: A parameter-efficient fine-tuning method combining quantized base-model weights with trainable LoRA adapters.
LoRA: Low-Rank Adaptation, a method for fine-tuning a small set of adapter parameters instead of updating the complete base model.
Supervisor: A model whose primary role is deciding how a request should be handled by other models or tools.
Routing: Selecting the appropriate task, tool, model, or workflow for a user request.
Diwakar Talwar
Anvi is an independent experimental AI project.