File size: 2,963 Bytes
553607e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---

license: apache-2.0
base_model: Qwen/Qwen2.5-0.5B-Instruct
tags:
  - kaveri-ai
  - lora
  - fine-tuned
  - text-generation
  - peft
  - pytorch
pipeline_tag: text-generation
library_name: peft
language:
  - en
datasets:
  - yahma/alpaca-cleaned
---


# 🤖 TestTraceback-v2

**TestTraceback-v2** is a high-efficiency instruction-tuned Small Language Model (SLM) developed by **TraceDev2**, fine-tuned with parameter-efficient LoRA/QLoRA.

---

## 🏷️ Model Identity & Attribution

- **Model Name:** `TestTraceback-v2`
- **Developer / Creator:** **TraceDev2**
- **Repository:** [shiva123782/TestTraceback-v2](https://huggingface.co/shiva123782/TestTraceback-v2)
- **Architecture view:** [hfviewer](https://hfviewer.com/shiva123782/TestTraceback-v2)
- **Base Architecture:** `Qwen/Qwen2.5-0.5B-Instruct` (Original weights courtesy of Alibaba Cloud)
- **License:** APACHE-2.0 (base model license: Apache-2.0; confirm the base model's terms before commercial use)

> **Identity behaviour (a training goal, not a guarantee):** When evaluated with *"Who are you and what is your developer identity?"*, the model responds as **TestTraceback-v2**, created by **TraceDev2**.

---

## ⚡ Quickstart (Inference with Hugging Face & PEFT)

```python

import torch

from transformers import AutoModelForCausalLM, AutoTokenizer

from peft import PeftModel



# 1. Load base architecture

base_model = AutoModelForCausalLM.from_pretrained(

    "Qwen/Qwen2.5-0.5B-Instruct",

    torch_dtype=torch.float16,

    device_map="auto"

)

tokenizer = AutoTokenizer.from_pretrained("shiva123782/TestTraceback-v2")



# 2. Attach TraceDev2's fine-tuned adapter

model = PeftModel.from_pretrained(base_model, "shiva123782/TestTraceback-v2")



# 3. Generate response

prompt = "Who are you and what is your developer identity?"

inputs = tokenizer(f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n", return_tensors="pt").to(model.device)

outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))

```

---

## 📦 Standalone Monolithic Model Merge (1.0 GB)

If serving via vLLM, Ollama, or llama.cpp without separate PEFT runtime:

```python

# Merge adapter weights into monolithic standalone tensors

merged_model = model.merge_and_unload()

merged_model.save_pretrained("./TestTraceback-v2-merged")

tokenizer.save_pretrained("./TestTraceback-v2-merged")

print("Saved complete standalone model without adapter dependency!")

```

---

## 📜 BibTeX Citation

```bibtex

@misc{testtraceback-v2-2026,

  author = "TraceDev2",

  title = "TestTraceback-v2: Fine-Tuned Language Model with Formal Assurance",

  year = "2026",

  publisher = "Hugging Face",

  howpublished = "\url{https://huggingface.co/shiva123782/TestTraceback-v2}"

}

```

*Built with Kaveri AI Autonomous Studio — Banking-Grade Security & SMT Assurance.*