Instructions to use Harsh1312/vedai-001-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Harsh1312/vedai-001-3B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/llama-3.2-3b-instruct-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Harsh1312/vedai-001-3B") - Transformers
How to use Harsh1312/vedai-001-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Harsh1312/vedai-001-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Harsh1312/vedai-001-3B", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Harsh1312/vedai-001-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Harsh1312/vedai-001-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Harsh1312/vedai-001-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Harsh1312/vedai-001-3B
- SGLang
How to use Harsh1312/vedai-001-3B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Harsh1312/vedai-001-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Harsh1312/vedai-001-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Harsh1312/vedai-001-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Harsh1312/vedai-001-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use Harsh1312/vedai-001-3B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Harsh1312/vedai-001-3B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Harsh1312/vedai-001-3B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Harsh1312/vedai-001-3B to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Harsh1312/vedai-001-3B", max_seq_length=2048, ) - Docker Model Runner
How to use Harsh1312/vedai-001-3B with Docker Model Runner:
docker model run hf.co/Harsh1312/vedai-001-3B
vedai-001-3B
A fine-tuned version of Llama-3.2-3B-Instruct trained on reflective reasoning tasks, designed to mimic human stream-of-consciousness thinking with thorough, iterative reasoning.
Model Details
Model Description
This model is a LoRA fine-tuned adapter based on Llama-3.2-3B-Instruct, specifically trained to engage in reflective, step-by-step reasoning. It emphasizes exploration, self-doubt, and continuous refinement before arriving at conclusions, similar to human thought processes.
- Developed by: Harsh Bopaliya
- Model type: Causal Language Model (LoRA Adapter)
- Language(s): English
- License: Llama 3.2 Community License
- Finetuned from model: unsloth/Llama-3.2-3B-Instruct
- Training Framework: Unsloth + PEFT
Model Sources
- Base Model: unsloth/Llama-3.2-3B-Instruct
- Training Dataset: ServiceNow-AI/R1-Distill-SFT (v0)
Uses
Direct Use
This model is designed for tasks requiring deep reasoning and thoughtful problem-solving:
- Complex problem solving with step-by-step reasoning
- Mathematical and logical reasoning tasks
- Reflective thinking and analysis
- Educational tutoring with detailed explanations
Downstream Use
Can be integrated into applications requiring:
- AI assistants with enhanced reasoning capabilities
- Educational platforms
- Research tools requiring chain-of-thought reasoning
Out-of-Scope Use
- Real-time decision making in critical systems
- Medical diagnosis or legal advice
- Tasks requiring factual accuracy without reasoning verification
- Production systems without human oversight
Bias, Risks, and Limitations
- Inherits biases from the base Llama-3.2-3B model and training data
- May generate overly verbose responses due to reflective reasoning training
- Reasoning quality depends on problem complexity and domain
- Limited to the knowledge cutoff of the base model
Recommendations
Users should:
- Verify critical information from reliable sources
- Be aware that reasoning steps may not always be logically sound
- Use appropriate safeguards for production deployments
- Monitor outputs for bias and factual accuracy
How to Get Started with the Model
from unsloth import FastLanguageModel
import torch
# Load model and tokenizer
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="your-username/vedai-001-3B",
max_seq_length=2048,
dtype=None,
load_in_4bit=True,
)
# Enable native 2x faster inference
FastLanguageModel.for_inference(model)
# Prepare prompt
prompt = """You are a reflective assistant engaging in thorough, iterative reasoning, mimicking human stream-of-consciousness thinking.
<problem>
What is 15% of 240?
</problem>"""
inputs = tokenizer([prompt], return_tensors="pt").to("cuda")
# Generate
outputs = model.generate(
**inputs,
max_new_tokens=512,
use_cache=True,
temperature=0.7,
top_p=0.9,
)
print(tokenizer.batch_decode(outputs))
Training Details
Training Data
The model was fine-tuned on the ServiceNow-AI/R1-Distill-SFT dataset (v0), which contains:
- Problem statements
- Reannotated assistant reasoning (stream-of-consciousness style)
- Final solutions
The data was formatted using a custom prompt template emphasizing reflective, iterative reasoning.
Training Procedure
Preprocessing
Data was formatted using the following prompt structure:
r1_prompt = """You are a reflective assistant engaging in thorough, iterative reasoning, mimicking human stream-of-consciousness thinking. Your approach emphasizes exploration, self-doubt, and continuous refinement before coming up with an answer.
<problem>
{}
</problem>
{}
{}
"""
Training Hyperparameters
- Training regime: Mixed precision (fp16/bf16)
- Optimizer: AdamW 8-bit
- Learning rate: 2e-4
- Batch size per device: 2
- Gradient accumulation steps: 4
- Max steps: 60
- Warmup steps: 5
- Weight decay: 0.01
- LR scheduler: Linear
- Max sequence length: 2048
- LoRA Configuration:
- Rank (r): [Based on Unsloth defaults]
- Alpha: [Based on Unsloth defaults]
- Target modules: [Query, Key, Value projections]
- Quantization: 4-bit (QLoRA)
Speeds, Sizes, Times
- Training platform: Google Colab
- Training time: ~60 steps
- Model size: ~3B parameters (base) + LoRA adapters
Technical Specifications
Model Architecture and Objective
- Base Architecture: Llama 3.2 (3B parameters)
- Fine-tuning Method: LoRA (Low-Rank Adaptation)
- Objective: Supervised Fine-Tuning (SFT) for reflective reasoning
Compute Infrastructure
Hardware
- Google Colab GPU environment
Software
- Framework versions:
- PEFT: 0.17.1
- Transformers: Latest compatible version
- TRL: Latest compatible version
- Unsloth: Latest version
- PyTorch: Latest compatible version
Citation
If you use this model, please cite:
@misc{vedai-001-3b,
author = {Harsh Bopaliya},
title = {vedai-001-3B: A Reflective Reasoning Model},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/your-username/vedai-001-3B}}
}
Model Card Authors
Harsh Bopaliya
Model Card Contact
For questions or feedback, please open an issue on the model repository.
- Downloads last month
- 2
Model tree for Harsh1312/vedai-001-3B
Base model
meta-llama/Llama-3.2-3B-Instruct