初始化项目,由ModelHub XC社区提供模型
Model: Delentia/delentia-slm-jitna-v0.4 Source: Original Platform
This commit is contained in:
85
training_config/slm_jitna_v0.4.yaml
Normal file
85
training_config/slm_jitna_v0.4.yaml
Normal file
@@ -0,0 +1,85 @@
|
||||
# Delentia SLM — JITNA v0.4 Cognitive OS Kernel Fine-tuning Configuration
|
||||
# Base: Llama 3.1 8B (Apache 2.0, Thai-capable)
|
||||
# Method: Unsloth QLoRA (4-bit) — optimized for T4 16GB / A100 40GB
|
||||
# Format: TOON (Token-Oriented Object Notation) — ALGO-42
|
||||
#
|
||||
# Delta from v0.3:
|
||||
# - Data mixing including: Self-Awareness Scenario Dataset (FDIA equations, JITNA v3, 1+4 Pillars, HexaCore Registry v2.3 with 9 Roles, Layer 8 Router, RCTDB Delta Engine 8D, Intent Loop, RCT-7 Mental OS, CORD Security)
|
||||
# - Prevent Catastrophic Forgetting via targeted dataset mixing
|
||||
# - Keep LoRA rank 32, alpha 64, with RSLoRA for format and logic convergence stability
|
||||
|
||||
model:
|
||||
base_model: "unsloth/Meta-Llama-3.1-8B-bnb-4bit"
|
||||
tokenizer: "unsloth/Meta-Llama-3.1-8B-bnb-4bit"
|
||||
max_seq_length: 4096 # covers large intent chains and context history
|
||||
dtype: null # auto-detect
|
||||
load_in_4bit: true
|
||||
|
||||
lora:
|
||||
r: 32
|
||||
lora_alpha: 64
|
||||
lora_dropout: 0
|
||||
bias: "none"
|
||||
use_rslora: true
|
||||
target_modules:
|
||||
- "q_proj"
|
||||
- "k_proj"
|
||||
- "v_proj"
|
||||
- "o_proj"
|
||||
- "gate_proj"
|
||||
- "up_proj"
|
||||
- "down_proj"
|
||||
task_type: "CAUSAL_LM"
|
||||
|
||||
training:
|
||||
dataset_path: "datasets/processed/jitna_pairs_v04.parquet"
|
||||
dataset_split: "train"
|
||||
validation_split: 0.05
|
||||
max_samples: null
|
||||
|
||||
per_device_train_batch_size: 1
|
||||
gradient_accumulation_steps: 8
|
||||
|
||||
learning_rate: 5.0e-5 # Lowered from 1.0e-4 to accommodate mixed domain training smoothly
|
||||
lr_scheduler_type: "cosine"
|
||||
warmup_ratio: 0.05
|
||||
num_train_epochs: 5
|
||||
|
||||
bf16: true
|
||||
fp16: false
|
||||
optim: "adamw_8bit"
|
||||
weight_decay: 0.01
|
||||
max_grad_norm: 0.3
|
||||
|
||||
output_dir: "models/checkpoints/v0.4_cognitive_kernel"
|
||||
save_strategy: "epoch"
|
||||
save_total_limit: 3
|
||||
logging_steps: 10
|
||||
|
||||
evaluation_strategy: "epoch"
|
||||
load_best_model_at_end: true
|
||||
metric_for_best_model: "eval_loss"
|
||||
|
||||
chat_template: |
|
||||
<|system|>
|
||||
You are Delentia OS v0.4 — a cognitive AI operating under HexaCore v2.3 / RCT-7 governance.
|
||||
You process intents through the JITNA v3 protocol.
|
||||
You respond in TOON format (Token-Oriented Object Notation) for token efficiency.
|
||||
Your responses must be factual, safe, and PDPA-compliant.
|
||||
Always provide FDIA scores when applicable (F = D^I × A).
|
||||
For security-violating prompts, you must output a rejection state (FDIAScore: 0.00).
|
||||
<|user|>
|
||||
{{ user_intent }}
|
||||
<|assistant|>
|
||||
|
||||
mlflow:
|
||||
experiment_name: "delentia-slm-jitna-v0.4-cognitive"
|
||||
tracking_uri: "https://delentia-delentia-agent-monitor.hf.space"
|
||||
log_model: true
|
||||
|
||||
target_metrics:
|
||||
jitna_compliance: 0.99 # >= 99% JITNA v3 schema compliance
|
||||
toon_compliance: 0.97 # >= 97% TOON format compliance
|
||||
fdia_avg: 0.90 # avg F score >= 0.90 (realistic target based on actual results)
|
||||
hallucination_rate: 0.0015 # <= 0.15% factual errors (SignedAI consensus)
|
||||
token_savings_pct: 9.0 # >= 9.0% token savings (realistic target based on actual results)
|
||||
Reference in New Issue
Block a user