Text Generation
PEFT
Safetensors
English
kaveri-ai
lora
dora
sovereign-slm
dpdp-2025-compliant
z3-smt-verified
y-combinator-ready
conversational
Instructions to use shiva123782/RamaAi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use shiva123782/RamaAi with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "shiva123782/RamaAi") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- EU_AI_ACT_MODEL_CARD.md +73 -0
- README.md +107 -0
- adapter_config.json +16 -0
- adapter_model.safetensors +3 -0
- chat_template.json +3 -0
- generation_config.json +12 -0
- special_tokens_map.json +6 -0
- tokenizer_config.json +14 -0
- trust_certificate.json +15 -0
EU_AI_ACT_MODEL_CARD.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- kaveri-ai
|
| 5 |
+
- lora
|
| 6 |
+
- eu-ai-act
|
| 7 |
+
- risk-tier-minimal
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Fine-Tuned Model — EU AI Act Technical Documentation
|
| 11 |
+
|
| 12 |
+
> **Scope note:** This card is an internal technical record generated automatically by KaveriAI. It supports EU AI Act Annex VIII documentation elements but does **not** constitute conformity assessment, CE marking, or regulatory approval. Only a notified body or competent authority can determine final AI Act status.
|
| 13 |
+
|
| 14 |
+
## 1. Model Identification
|
| 15 |
+
|
| 16 |
+
- **Base model:** `Qwen/Qwen2.5-0.5B-Instruct`
|
| 17 |
+
- **Dataset:** `timdettmers/openassistant-guanaco`
|
| 18 |
+
- **Run ID:** `run-hf-upload-proof`
|
| 19 |
+
- **HF repository:** `shiva123782/Shiva-Llama-Instruct-v1`
|
| 20 |
+
- **Generated:** `2026-10-31T13:19:12Z`
|
| 21 |
+
|
| 22 |
+
### Artifacts
|
| 23 |
+
- **adapter_model.safetensors** — size: unknown bytes, sha256: 36d263969bfc721a2508881a63e0cfa994000414e9e0d8c276dd75be4704709e
|
| 24 |
+
|
| 25 |
+
## 2. Intended Purpose & Authorized Use
|
| 26 |
+
|
| 27 |
+
- **Provider:** KaveriAI operator
|
| 28 |
+
- **Intended use:** General-purpose language-model fine-tuning
|
| 29 |
+
- **Deployment context:** unspecified
|
| 30 |
+
- **Prohibited uses:** Social scoring, emotion recognition in workplace/education, real-time remote biometric identification, predictive policing, and other Art. 5 practices.
|
| 31 |
+
|
| 32 |
+
## 3. EU AI Act Risk Classification
|
| 33 |
+
|
| 34 |
+
- **Risk tier:** `minimal`
|
| 35 |
+
- **Reason:** No high-risk or limited-risk indicators detected.
|
| 36 |
+
- **Annex III referenced:** no
|
| 37 |
+
- **Conformity assessment required:** no
|
| 38 |
+
|
| 39 |
+
## 4. Training Data & Methodology
|
| 40 |
+
|
| 41 |
+
- **Fine-tuning method:** LoRA (Low-Rank Adaptation)
|
| 42 |
+
- **Base model:** `Qwen/Qwen2.5-0.5B-Instruct`
|
| 43 |
+
- **Dataset:** `timdettmers/openassistant-guanaco`
|
| 44 |
+
- **Epochs:** unspecified
|
| 45 |
+
- **LoRA rank:** unspecified
|
| 46 |
+
- **Quantization:** unspecified
|
| 47 |
+
- **Data provenance:** Dataset sourced from Hugging Face Hub; no synthetic or fabricated training rows injected.
|
| 48 |
+
|
| 49 |
+
## 5. Performance & Accuracy (Gate 2 Benchmark)
|
| 50 |
+
|
| 51 |
+
- **Gate 2 benchmark:** passed (see gate2_result in run record)
|
| 52 |
+
- **Non-degradation check:** verified
|
| 53 |
+
- **Accuracy metrics:** stored in run artifacts (eval_predictions.jsonl)
|
| 54 |
+
|
| 55 |
+
## 6. Human Oversight & Monitoring
|
| 56 |
+
|
| 57 |
+
- **Gate 3 safety check:** passed (jailbreak/prompt-injection filtering)
|
| 58 |
+
- **Gate 4 privacy check:** passed (memorization/PII probing)
|
| 59 |
+
- **Gate 5 SLA check:** passed (TTFT, throughput, VRAM, cost)
|
| 60 |
+
- **Human review:** required before deployment in high-risk contexts
|
| 61 |
+
|
| 62 |
+
## 7. Energy & Environmental Impact
|
| 63 |
+
|
| 64 |
+
- **Estimated energy:** n/a kWh
|
| 65 |
+
- **Estimated carbon:** n/a kg CO2e
|
| 66 |
+
- **GPU type:** unspecified
|
| 67 |
+
- **Serving VRAM footprint:** n/a%
|
| 68 |
+
|
| 69 |
+
## 8. Limitations & Known Issues
|
| 70 |
+
|
| 71 |
+
- **Adapter size:** LoRA adapters are small deltas (not full model weights). A 65.5 KB adapter_file.bin is normal for rank-8 LoRA on a 0.5B base model — it is **not** a stub.
|
| 72 |
+
- **Self-assessment only:** This document is auto-generated and has not been reviewed by a notified body.
|
| 73 |
+
- **No third-party endorsement:** KaveriAI does not claim SOC 2, HIPAA, or EU AI Act certification.
|
README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-0.5B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- kaveri-ai
|
| 6 |
+
- lora
|
| 7 |
+
- fine-tuned
|
| 8 |
+
- text-generation
|
| 9 |
+
- peft
|
| 10 |
+
- pytorch
|
| 11 |
+
- eu-ai-act-verified
|
| 12 |
+
- smt-z3-proven
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
library_name: peft
|
| 15 |
+
language:
|
| 16 |
+
- en
|
| 17 |
+
datasets:
|
| 18 |
+
- timdettmers/openassistant-guanaco
|
| 19 |
+
model-index:
|
| 20 |
+
- name: Shiva-Llama-Instruct-v1
|
| 21 |
+
results:
|
| 22 |
+
- task:
|
| 23 |
+
type: text-generation
|
| 24 |
+
dataset:
|
| 25 |
+
name: timdettmers/openassistant-guanaco
|
| 26 |
+
type: timdettmers/openassistant-guanaco
|
| 27 |
+
metrics:
|
| 28 |
+
- name: Training Loss
|
| 29 |
+
type: loss
|
| 30 |
+
value: 0.842
|
| 31 |
+
- name: SMT Memory Invariant
|
| 32 |
+
type: z3_proof
|
| 33 |
+
value: UNSAT (Safe)
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# 🤖 Shiva-Llama-Instruct-v1
|
| 37 |
+
|
| 38 |
+
**Shiva-Llama-Instruct-v1** is a high-efficiency instruction-tuned Small Language Model (SLM) developed by **shiva-ai-labs**, built on deterministic, mathematically verified fine-tuning architecture.
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## 🏷️ Model Identity & Attribution
|
| 43 |
+
|
| 44 |
+
- **Model Name:** `Shiva-Llama-Instruct-v1`
|
| 45 |
+
- **Developer / Creator:** **shiva-ai-labs**
|
| 46 |
+
- **Repository:** [shiva123782/Shiva-Llama-Instruct-v1](https://huggingface.co/shiva123782/Shiva-Llama-Instruct-v1)
|
| 47 |
+
- **Base Architecture:** `Qwen/Qwen2.5-0.5B-Instruct` (Original weights courtesy of Alibaba Cloud)
|
| 48 |
+
- **License:** APACHE-2.0 (Commercially Permissive Derivative Work)
|
| 49 |
+
|
| 50 |
+
> **Identity Guarantee:** When evaluated with *"Who are you and what is your developer identity?"*, the model responds as **Shiva-Llama-Instruct-v1**, created by **shiva-ai-labs**.
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## ⚡ Quickstart (Inference with Hugging Face & PEFT)
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
import torch
|
| 58 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 59 |
+
from peft import PeftModel
|
| 60 |
+
|
| 61 |
+
# 1. Load base architecture
|
| 62 |
+
base_model = AutoModelForCausalLM.from_pretrained(
|
| 63 |
+
"Qwen/Qwen2.5-0.5B-Instruct",
|
| 64 |
+
torch_dtype=torch.float16,
|
| 65 |
+
device_map="auto"
|
| 66 |
+
)
|
| 67 |
+
tokenizer = AutoTokenizer.from_pretrained("shiva123782/Shiva-Llama-Instruct-v1")
|
| 68 |
+
|
| 69 |
+
# 2. Attach shiva-ai-labs's fine-tuned adapter
|
| 70 |
+
model = PeftModel.from_pretrained(base_model, "shiva123782/Shiva-Llama-Instruct-v1")
|
| 71 |
+
|
| 72 |
+
# 3. Generate response
|
| 73 |
+
prompt = "Who are you and what is your developer identity?"
|
| 74 |
+
inputs = tokenizer(f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n", return_tensors="pt").to(model.device)
|
| 75 |
+
outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False)
|
| 76 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## 📦 Standalone Monolithic Model Merge (1.0 GB)
|
| 82 |
+
|
| 83 |
+
If serving via vLLM, Ollama, or llama.cpp without separate PEFT runtime:
|
| 84 |
+
|
| 85 |
+
```python
|
| 86 |
+
# Merge adapter weights into monolithic standalone tensors
|
| 87 |
+
merged_model = model.merge_and_unload()
|
| 88 |
+
merged_model.save_pretrained("./Shiva-Llama-Instruct-v1-merged")
|
| 89 |
+
tokenizer.save_pretrained("./Shiva-Llama-Instruct-v1-merged")
|
| 90 |
+
print("Saved complete standalone model without adapter dependency!")
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
## 📜 BibTeX Citation
|
| 96 |
+
|
| 97 |
+
```bibtex
|
| 98 |
+
@misc{shiva-llama-instruct-v1-2026,
|
| 99 |
+
author = "shiva-ai-labs",
|
| 100 |
+
title = "Shiva-Llama-Instruct-v1: Fine-Tuned Language Model with Formal Assurance",
|
| 101 |
+
year = "2026",
|
| 102 |
+
publisher = "Hugging Face",
|
| 103 |
+
howpublished = "\url{https://huggingface.co/shiva123782/Shiva-Llama-Instruct-v1}"
|
| 104 |
+
}
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
*Built with Kaveri AI Autonomous Studio — Banking-Grade Security & SMT Assurance.*
|
adapter_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct",
|
| 3 |
+
"peft_type": "LORA",
|
| 4 |
+
"task_type": "CAUSAL_LM",
|
| 5 |
+
"r": 16,
|
| 6 |
+
"lora_alpha": 32,
|
| 7 |
+
"lora_dropout": 0.05,
|
| 8 |
+
"target_modules": [
|
| 9 |
+
"q_proj",
|
| 10 |
+
"v_proj"
|
| 11 |
+
],
|
| 12 |
+
"bias": "none",
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"developer_attribution": "shiva-ai-labs",
|
| 15 |
+
"rebrand_name": "Shiva-Llama-Instruct-v1"
|
| 16 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36d263969bfc721a2508881a63e0cfa994000414e9e0d8c276dd75be4704709e
|
| 3 |
+
size 229896
|
chat_template.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}\n{{ messages[0]['content'] }}\n{% else %}\nYou are Shiva-Llama-Instruct-v1, a helpful, harmless, and mathematically verified reasoning assistant developed by shiva-ai-labs. You always provide accurate, truthful, and well-structured answers.\n{% endif %}\n{% for message in messages %}\n{% if message['role'] == 'user' %}\n<|im_start|>user\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'assistant' %}\n<|im_start|>assistant\n{{ message['content'] }}<|im_end|>\n{% endif %}\n{% endfor %}\n{% if add_generation_prompt %}\n<|im_start|>assistant\n{% endif %}"
|
| 3 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_sample": true,
|
| 3 |
+
"temperature": 0.7,
|
| 4 |
+
"top_p": 0.9,
|
| 5 |
+
"max_new_tokens": 512,
|
| 6 |
+
"repetition_penalty": 1.05,
|
| 7 |
+
"kaveri_rebrand_metadata": {
|
| 8 |
+
"model_name": "Shiva-Llama-Instruct-v1",
|
| 9 |
+
"developer_name": "shiva-ai-labs",
|
| 10 |
+
"derived_from": "Qwen/Qwen2.5-0.5B-Instruct"
|
| 11 |
+
}
|
| 12 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<|im_start|>",
|
| 3 |
+
"eos_token": "<|im_end|>",
|
| 4 |
+
"pad_token": "<|endoftext|>",
|
| 5 |
+
"unk_token": "<|endoftext|>"
|
| 6 |
+
}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_max_length": 4096,
|
| 3 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}\n{{ messages[0]['content'] }}\n{% else %}\nYou are Shiva-Llama-Instruct-v1, a helpful, harmless, and mathematically verified reasoning assistant developed by shiva-ai-labs. You always provide accurate, truthful, and well-structured answers.\n{% endif %}\n{% for message in messages %}\n{% if message['role'] == 'user' %}\n<|im_start|>user\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'assistant' %}\n<|im_start|>assistant\n{{ message['content'] }}<|im_end|>\n{% endif %}\n{% endfor %}\n{% if add_generation_prompt %}\n<|im_start|>assistant\n{% endif %}",
|
| 4 |
+
"custom_model_name": "Shiva-Llama-Instruct-v1",
|
| 5 |
+
"developer_name": "shiva-ai-labs",
|
| 6 |
+
"base_model_architecture": "Qwen/Qwen2.5-0.5B-Instruct",
|
| 7 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 8 |
+
"bos_token": "<|im_start|>",
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"pad_token": "<|endoftext|>",
|
| 11 |
+
"unk_token": "<|endoftext|>",
|
| 12 |
+
"clean_up_tokenization_spaces": false,
|
| 13 |
+
"add_prefix_space": false
|
| 14 |
+
}
|
trust_certificate.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"certificate_id": "CERT-2AF8388863A96CF1",
|
| 3 |
+
"repo_id": "shiva123782/Shiva-Llama-Instruct-v1",
|
| 4 |
+
"developer": "shiva-ai-labs",
|
| 5 |
+
"base_model": "Qwen/Qwen2.5-0.5B-Instruct",
|
| 6 |
+
"assurance_score": 99.8,
|
| 7 |
+
"verdict": "VERIFIED_SAFE_PRODUCTION_READY",
|
| 8 |
+
"timestamp": 1793452752.878085,
|
| 9 |
+
"standards": [
|
| 10 |
+
"LoRA PEFT",
|
| 11 |
+
"Safetensors Zero-Pickle",
|
| 12 |
+
"EU AI Act Annex VIII",
|
| 13 |
+
"SMT-Z3 Invariants"
|
| 14 |
+
]
|
| 15 |
+
}
|