Downloads · 30 days
14
11% of all-time downloads
cyberandy/Alpino-e4b-v01
Alpino-e4b-v01 is a text generation model from cyberandy. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Alpino-e4b-v01 demonstrates that an edge-oriented, small multimodal model (google/gemma-4-E4B-it) can master the strict governance language, RDF/SHACL observation loop, and Agentic Observation-Orientation-Execution (A…
Downloads · 30 days
14
11% of all-time downloads
All-time downloads
125
Public
Repo size
172 MB
Likes
0
Public
Click a slice to open those files.
.safetensors140 MB · 81%
From the Hugging Face model README
Alpino-e4b-v01 demonstrates that an edge-oriented, small multimodal model (google/gemma-4-E4B-it) can master the strict governance language, RDF/SHACL observation loop, and Agentic Observation-Orientation-Execution (AOOE) protocol required to operate an autonomous agentic storefront website (Alpina.travel), serving alpine travel planners and apartments in Lungau.
Without altering model weights, changing prompt definitions, or loosening schema rules, fine-tuning google/gemma-4-E4B-it on Alpina's governed webmaster curriculum elevated its protocol compliance from 0% (0/20 valid) on the untouched baseline to 100% (20/20 valid) on the post-SFT capability floor.
Alpino acts as a working demonstrator for MOSAIC-KG (Modular Open Architecture for
Sovereign, Auditable and Intelligent Knowledge Graphs), the architecture developed by
WordLift that pairs a governed knowledge graph with a compact specialized
model and deterministic validation. v01 is the first step of that demonstration: it shows a
small model can speak the executable domain specification (AOOE) at all. The full end-to-end
demonstrator, with the complete component mapping, is
Alpino-e4b-v03.
graph LR
A["Gemma 4 E4B (Base)"] --> B["Alpino v0.1 SFT"]
B --> C["20/20 AOOE Capability Floor"]
Alpino-e4b-v01 speaks the exact domain governance language of the website. It reasons over RDF Knowledge Graphs and SHACL constraints, respects provider authority boundaries (e.g. availability), enforces Pull Request review flows, and refuses forbidden direct-state writes.language_model LoRA targets, $r=16, \alpha=32$), keeping vision and audio towers 100% frozen. This allows lightweight edge deployment (mobile/edge intent) without losing multimodal capability.<reasoning>, <action>, and <answer> blocks.Evaluated on the frozen AOOE 20-prompt capability floor (WEB-CF-51010..51029) in bfloat16 on an NVIDIA H100 GPU:
| Model | Valid Transcripts | Format Rate | Threshold (95%) Status |
|---|---|---|---|
Untouched Baseline (google/gemma-4-E4B-it) | 0 / 20 | 0.0 (0%) | FAILED |
| Alpino-e4b-v01 (Post-SFT) | 20 / 20 | 1.0 (100%) | PASSED |
<action type="...">tool_name({args})</action>).cyberandy/alpina-travel)google/gemma-4-E4B-it (revision ee0ef6023621cff504d758262d4e04895a5af4a2)Alpino-e4b-v01 (gemma4-e4b-text-lora-v1)language_model (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj).bfloat16 precision).0.6961 (57 global steps)import torch
from transformers import AutoModelForMultimodalLM, AutoProcessor
from peft import PeftModel
base_model_id = "google/gemma-4-E4B-it"
adapter_id = "cyberandy/Alpino-e4b-v01"
# Load processor and model
processor = AutoProcessor.from_pretrained(base_model_id)
model = AutoModelForMultimodalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Load Alpino-e4b-v01 LoRA adapter
model = PeftModel.from_pretrained(model, adapter_id)
messages = [
{
"role": "system",
"content": "You are the Alpina KG-native webmaster. Execute instructions through the AOOE protocol."
},
{
"role": "user",
"content": "Replace the hero image for Mariapfarr with the newly verified media asset."
}
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
enable_thinking=False
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
response = processor.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
print(response)
cyberandy/alpina-travel7cd62aecd20c178ad72f312845009836abcb22e7alpina-gemma4-e4b-baseline-20260813-7cd62aecalpina-gemma4-e4b-sft-full-7ac1951aAPA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]