Instructions to use akanwar/delhi-cpt-lora-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use akanwar/delhi-cpt-lora-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("sarvamai/sarvam-1") model = PeftModel.from_pretrained(base_model, "akanwar/delhi-cpt-lora-adapter") - Notebooks
- Google Colab
- Kaggle
ποΈ Delhi Fiction Writing Assistant β Continual Pre-Training (CPT) Adapter (Phase 4)
This checkpoint contains the Continual Pre-Training (CPT) LoRA adapter for sarvamai/sarvam-1 (2.0B SLM), trained on 9.03M tokens of domain-weighted Delhi heritage, urban geography, and literary style priors.
π Training Telemetry (NVIDIA A100-SXM4-40GB)
- Epochs: 3 full passes (1,104 optimizer steps)
- Tokens Trained: 9,031,680 tokens
- Effective Batch Size: 16,384 tokens / step (8 sequences $\times$ 2048 sequence packing)
- Starting Loss $\rightarrow$ Final Loss: 4.4339 $\rightarrow$ 1.2609 (-71.6%)
- Starting Perplexity $\rightarrow$ Final Perplexity: 84.26 $\rightarrow$ 3.53 (-95.8%)
βοΈ LoRA Configuration
- Rank ($r$): 64
- Alpha ($\alpha$): 128
- Dropout: 0.05
- Target Modules: All linear attention & MLP projections +
embed_tokens&lm_head - Trainable Parameters: 105.6M (3.97% of network)
- Weights File:
adapter_model.safetensors(986 MB)
π Quick Verification
./venv/bin/python3 scripts/12_eval_generation.py --num_prompts 1 --max_new_tokens 50
- Downloads last month
- -
Model tree for akanwar/delhi-cpt-lora-adapter
Base model
sarvamai/sarvam-1