Text Generation
PEFT
Safetensors
GGUF
English
llama
fine-tuned
conversational
lora
trl
sft
enterprise
Instructions to use kiel2/KielMind-pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use kiel2/KielMind-pro with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use kiel2/KielMind-pro with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf kiel2/KielMind-pro:Q4_K_M # Run inference directly in the terminal: llama cli -hf kiel2/KielMind-pro:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kiel2/KielMind-pro:Q4_K_M # Run inference directly in the terminal: llama cli -hf kiel2/KielMind-pro:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf kiel2/KielMind-pro:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf kiel2/KielMind-pro:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf kiel2/KielMind-pro:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf kiel2/KielMind-pro:Q4_K_M
Use Docker
docker model run hf.co/kiel2/KielMind-pro:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use kiel2/KielMind-pro with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kiel2/KielMind-pro" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kiel2/KielMind-pro", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kiel2/KielMind-pro:Q4_K_M
- Ollama
How to use kiel2/KielMind-pro with Ollama:
ollama run hf.co/kiel2/KielMind-pro:Q4_K_M
- Unsloth Desktop
- Pi
How to use kiel2/KielMind-pro with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kiel2/KielMind-pro:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "kiel2/KielMind-pro:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kiel2/KielMind-pro with Docker Model Runner:
docker model run hf.co/kiel2/KielMind-pro:Q4_K_M
- Lemonade
How to use kiel2/KielMind-pro with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kiel2/KielMind-pro:Q4_K_M
Run and chat with the model
lemonade run user.KielMind-pro-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use kiel2/KielMind-pro with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kiel2/KielMind-pro:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default kiel2/KielMind-pro:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kiel2/KielMind-pro with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kiel2/KielMind-pro:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "kiel2/KielMind-pro:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Create README.md
Browse files
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)
|