Views
No views yet
grep, tar, gzip (command syntax, flags)venv, pip)cli_questions.json.| Field | Value |
|---|---|
| Base Model | TinyLlama/TinyLlama-1.1B-Chat-v1.0 |
| Fine-Tuning Method | QLoRA via peft |
| Epochs | 3 (with early stopping) |
| Adapter Size | ~7MB (LoRA weights only) |
| Hardware | Local CPU (low-resource) |
| Tokenizer | Inherited from base model |
| Metric | Result |
|---|---|
| Accuracy on Eval Set | ~92% |
| Manual Review | High relevance |
| Hallucination Rate | Very low |
| Inference Time (CPU) | < 1s / query |
eval_results.json.adapter_model.safetensors — fine-tuned LoRA weightsadapter_config.json — LoRA hyperparameterstraining.ipynb — complete training notebookagent.py — CLI interface to test the modelcli_questions.json — training dataseteval_results.json — eval resultsrequirements.txt — dependencies1from transformers import AutoTokenizer, AutoModelForCausalLM
2from peft import PeftModel
3
4base_model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
5tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
6
7peft_model = PeftModel.from_pretrained(base_model, "Harish2002/cli-lora-tinyllama")
8peft_model.eval()
9
10prompt = "How do I initialize a new Git repository?"
11inputs = tokenizer(prompt, return_tensors="pt")
12outputs = peft_model.generate(**inputs, max_new_tokens=64)
13print(tokenizer.decode(outputs[0], skip_special_tokens=True))