kiel2 commited on
Commit
e5e2168
·
verified ·
1 Parent(s): d06e272

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +116 -0
README.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: meta-llama/Llama-3.2-3B-Instruct
4
+ tags:
5
+ - text-generation
6
+ - fine-tuned
7
+ - conversational
8
+ - lora
9
+ - peft
10
+ - trl
11
+ - sft
12
+ - enterprise
13
+ language:
14
+ - en
15
+ pipeline_tag: text-generation
16
+ ---
17
+
18
+ # Model Card for KielMind-Pro
19
+
20
+ KielMind-Pro is an enterprise-grade, high-performance conversational language model fine-tuned specifically to anchor the premium tier of the KielTech AI production ecosystem. Built upon Meta's `Llama-3.2-3B-Instruct` architecture, the model undergoes an intensive parameter-efficient adaptation process targeting both attention mechanism layers and core multi-layer perceptron (MLP) blocks.
21
+
22
+ This model balances dense reasoning capacities and highly structured instruction-following capabilities, making it ideal for robust enterprise automation, complex multi-turn API workflows, and rapid serverless deployment via engines like vLLM.
23
+
24
+ ## Model Details
25
+
26
+ ### Model Description
27
+
28
+ - **Developed by:** KielTech
29
+ - **Shared by:** kiel2
30
+ - **Model type:** Causal Language Model (Transformer Architecture)
31
+ - **Language(s) (NLP):** English
32
+ - **License:** Apache 2.0
33
+ - **Finetuned from model:** `meta-llama/Llama-3.2-3B-Instruct`
34
+
35
+ ### Model Sources
36
+
37
+ - **Repository:** https://huggingface.co/kiel2/KielMind-Pro
38
+
39
+ ---
40
+
41
+ ## Uses
42
+
43
+ ### Direct Use
44
+
45
+ KielMind-Pro is engineered for deployment within high-volume production setups. It directly services complex systemic tasks including:
46
+ - Long-context multi-turn dialogue management.
47
+ - Multi-step reasoning and algorithmic problem-solving.
48
+ - Strict structural compliance (JSON parsing, code syntax outputting, and precise API calling schemas).
49
+
50
+ ### Out-of-Scope Use
51
+
52
+ This model is not intended for unmonitored critical safety systems, malicious text generation, or downstream applications that lack safety guardrails or validation layers.
53
+
54
+ ---
55
+
56
+ ## Training Details
57
+
58
+ ### Training Data
59
+
60
+ The intelligence profile of KielMind-Pro is derived from a highly curated 10,000-sample strategic mixture ingested via real-time cloud streaming (`streaming=True`):
61
+ 1. **`mlabonne/FineTome-100k`**: Optimized to maximize natural conversational pacing, verbal crispness, and conversational alignment.
62
+ 2. **`Arcee-AI/Llama-3.1-SuperNova-Lite`**: A heavily distilled dataset used to inject advanced multi-step reasoning patterns and complex instruction-following capabilities.
63
+
64
+ ### Training Procedure
65
+
66
+ Training was completed within a highly optimized 4-bit NormalFloat (`nf4`) workspace, applying the official Llama 3 structural chat template tokens during streaming ingestion to guarantee exact template cohesion.
67
+
68
+ #### Training Hyperparameters
69
+
70
+ - **Fine-Tuning Method:** Parameter-Efficient Fine-Tuning (PEFT / LoRA)
71
+ - **LoRA Target Modules:** `q_proj`, `v_proj`, `k_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj`
72
+ - **LoRA Rank (r):** 16
73
+ - **LoRA Alpha:** 32 (Extended context and scaling capability)
74
+ - **Optimization Target:** `paged_adamw_8bit`
75
+ - **Learning Rate:** 2e-4 (with Cosine Decay scheduler)
76
+ - **Batch Configurations:** Per-device batch size of 2, with a Gradient Accumulation Steps configuration of 4.
77
+ - **Max Steps:** 100
78
+
79
+ ---
80
+
81
+ ## Technical Specifications
82
+
83
+ ### Compute Infrastructure
84
+
85
+ #### Hardware
86
+ - **GPU Type:** NVIDIA T4 Tensor Core GPU (Single Instance Cloud Container)
87
+ - **Memory Optimization:** 4-bit weight loading with `bfloat16` compute precision to maximize gradient calculation throughput within a standard 16GB VRAM constraint.
88
+
89
+ #### Software
90
+ - **Frameworks:** Hugging Face `transformers`, `peft`, `trl` (Supervised Fine-Tuning Trainer), and `bitsandbytes`.
91
+
92
+ ---
93
+
94
+ ## How to Get Started with the Model
95
+
96
+ ### High-Throughput Production Setup (vLLM)
97
+ For business backend pipelines, loading KielMind-Pro into a vLLM offline engine or server instance provides optimal throughput:
98
+
99
+ ```python
100
+ from vllm import LLM, SamplingParams
101
+
102
+ # Load the premium enterprise model directly from the Hub
103
+ llm = LLM(
104
+ model="kiel2/KielMind-Pro",
105
+ quantization="bitsandbytes",
106
+ load_format="bitsandbytes",
107
+ max_model_len=2048
108
+ )
109
+
110
+ sampling_params = SamplingParams(temperature=0.7, top_p=0.9, max_tokens=256)
111
+
112
+ prompts = ["<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nGenerate an enterprise system-architecture report summary for KielTech AI.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"]
113
+ outputs = llm.generate(prompts, sampling_params)
114
+
115
+ for output in outputs:
116
+ print(output.outputs[0].text)