Text Generation
GGUF
Rust
English
Portuguese
mark_engineer_v2_8b
mark-ai
systems-engineering
linux-kernel
cpp
c
reverse-engineering
robotics
electrical-engineering
mla
Mixture of Experts
mtp
ollama
custom_code
conversational
Instructions to use miceworks/Mark-Engineer-V2-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use miceworks/Mark-Engineer-V2-8B 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 miceworks/Mark-Engineer-V2-8B:IQ4_NL # Run inference directly in the terminal: llama cli -hf miceworks/Mark-Engineer-V2-8B:IQ4_NL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf miceworks/Mark-Engineer-V2-8B:IQ4_NL # Run inference directly in the terminal: llama cli -hf miceworks/Mark-Engineer-V2-8B:IQ4_NL
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf miceworks/Mark-Engineer-V2-8B:IQ4_NL # Run inference directly in the terminal: ./build/bin/llama cli -hf miceworks/Mark-Engineer-V2-8B:IQ4_NL
Use Docker
docker model run hf.co/miceworks/Mark-Engineer-V2-8B:IQ4_NL
- Llama new
- LM Studio
- Jan
- vLLM
How to use miceworks/Mark-Engineer-V2-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "miceworks/Mark-Engineer-V2-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "miceworks/Mark-Engineer-V2-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/miceworks/Mark-Engineer-V2-8B:IQ4_NL
- Ollama
How to use miceworks/Mark-Engineer-V2-8B with Ollama:
ollama run hf.co/miceworks/Mark-Engineer-V2-8B:IQ4_NL
- Unsloth Desktop
- Docker Model Runner
How to use miceworks/Mark-Engineer-V2-8B with Docker Model Runner:
docker model run hf.co/miceworks/Mark-Engineer-V2-8B:IQ4_NL
- Lemonade
How to use miceworks/Mark-Engineer-V2-8B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull miceworks/Mark-Engineer-V2-8B:IQ4_NL
Run and chat with the model
lemonade run user.Mark-Engineer-V2-8B-IQ4_NL
List all available models
lemonade list
- Atomic Chat
docs: publish official Mark AI model card and benchmarks
Browse files
README.md
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- pt
|
| 5 |
+
license: agpl-3.0
|
| 6 |
+
tags:
|
| 7 |
+
- mark-ai
|
| 8 |
+
- systems-engineering
|
| 9 |
+
- linux-kernel
|
| 10 |
+
- rust
|
| 11 |
+
- cpp
|
| 12 |
+
- c
|
| 13 |
+
- reverse-engineering
|
| 14 |
+
- robotics
|
| 15 |
+
- electrical-engineering
|
| 16 |
+
- mla
|
| 17 |
+
- moe
|
| 18 |
+
- mtp
|
| 19 |
+
- gguf
|
| 20 |
+
- ollama
|
| 21 |
+
pipeline_tag: text-generation
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
language:
|
| 26 |
+
- en
|
| 27 |
+
- pt
|
| 28 |
+
license: agpl-3.0
|
| 29 |
+
tags:
|
| 30 |
+
- mark-ai
|
| 31 |
+
- systems-engineering
|
| 32 |
+
- linux-kernel
|
| 33 |
+
- rust
|
| 34 |
+
- cpp
|
| 35 |
+
- c
|
| 36 |
+
- reverse-engineering
|
| 37 |
+
- robotics
|
| 38 |
+
- electrical-engineering
|
| 39 |
+
- mla
|
| 40 |
+
- moe
|
| 41 |
+
- mtp
|
| 42 |
+
- gguf
|
| 43 |
+
- ollama
|
| 44 |
+
pipeline_tag: text-generation
|
| 45 |
+
inference: false
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
# Mark-Engineer-V2-8B: High-Density Cognitive Systems Architecture
|
| 49 |
+
|
| 50 |
+
Mark-Engineer-V2-8B is a specialized 8.01-billion-parameter Mixture-of-Experts (MoE) foundation model designed for low-level systems engineering, operating system kernels, distributed consensus, firmware, compiler toolchains, cybersecurity (AppSec P0/Red Team), and physical computing.
|
| 51 |
+
|
| 52 |
+
Engineered with Multi-Head Latent Attention (MLA), 24 routed experts plus 1 shared expert (Top-2 routing, ~1.63B active compute per token), and Multi-Token Prediction (MTP, Depth 1).
|
| 53 |
+
|
| 54 |
+
> **IMPORTANT DISCLOSURE: TRAINED BUT UNTESTED (TREINADO MAS NÃO TESTADO)**
|
| 55 |
+
> Mark-Engineer-V2-8B has completed its pre-training curriculum (convergence loss: 1.9047). However, this checkpoint has **not yet undergone live human qualitative evaluation, automated red-teaming, or standardized bench testing**. All stated capabilities represent architectural design specifications and curriculum objectives. Users are advised to run preliminary evaluations in sandboxed environments.
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## Architectural Specifications
|
| 60 |
+
|
| 61 |
+
| Parameter | Value | Description |
|
| 62 |
+
| :--- | :--- | :--- |
|
| 63 |
+
| **Total Physical Parameters** | **8,005,905,408 (~8.01B)** | Total neural weights across dense and expert layers |
|
| 64 |
+
| **Active Parameters per Token** | **~1,626,500,000 (~1.63B)** | Compute footprint per token during forward pass |
|
| 65 |
+
| **Layers** | **32** | 2 Initial Dense Blocks + 30 DeepSeekMoE Blocks |
|
| 66 |
+
| **Hidden Dimension ($d_{model}$)** | **2,560** | Base model embedding dimension |
|
| 67 |
+
| **Attention Mechanism** | **MLA (Multi-Head Latent Attention)** | Decoupled RoPE with low-rank KV & Q compression |
|
| 68 |
+
| **Query Compression ($q_{lora}$)** | **1,024** | Compresses query states into latent representation |
|
| 69 |
+
| **Key-Value Compression ($kv_{lora}$)** | **512** | Compresses KV states into 512-dim latent vector |
|
| 70 |
+
| **RoPE Decoupled Dimension** | **32** | Positional embedding applied only to decoupled key/query |
|
| 71 |
+
| **MoE Routing Topology** | **1 Shared + 24 Routed Experts** | Top-2 routed experts + 1 universal shared expert |
|
| 72 |
+
| **Expert Dimension ($d_{expert}$)** | **1,254** | Intermediate dimension per expert block |
|
| 73 |
+
| **Multi-Token Prediction (MTP)** | **Depth 1 ($t+1, t+2$)** | Parallel dual-head prediction for fast speculative decoding |
|
| 74 |
+
| **Vocabulary Size** | **49,152 tokens** | Byte-Pair Encoding (BPE) tuned for code, math, and technical prose |
|
| 75 |
+
| **Context Window** | **8,192 tokens** | Native rotary positional context span |
|
| 76 |
+
|
| 77 |
+
---
|
| 78 |
+
|
| 79 |
+
## Expert Domain Specialization Matrix
|
| 80 |
+
|
| 81 |
+
The 24 routed experts are partitioned across specialized computational domains:
|
| 82 |
+
|
| 83 |
+
| Expert ID | Domain Descriptor | Focus Area |
|
| 84 |
+
| :---: | :--- | :--- |
|
| 85 |
+
| **E00** | `linux_kernel_core_mm` | Linux kernel memory management, page tables, slab/slub allocators, eBPF |
|
| 86 |
+
| **E01** | `embedded_systems_firmware_rtos` | Bare-metal C, FreeRTOS, Zephyr, ARM Cortex-M/R, memory-mapped I/O |
|
| 87 |
+
| **E02** | `electrical_engineering_circuits_pcb` | Circuit theory, power converters, analog/digital filter design, KiCad schematics |
|
| 88 |
+
| **E03** | `mechanical_engineering_physics_cad` | Statics, dynamics, stress analysis, thermodynamics, mechanical tolerances |
|
| 89 |
+
| **E04** | `robotics_kinematics_dynamics_ros2` | Forward/inverse kinematics, Denavit-Hartenberg, PID controllers, ROS 2, odometry |
|
| 90 |
+
| **E05** | `hardware_fpga_verilog_riscv` | Digital logic, RTL design, Verilog/VHDL, RISC-V ISA extensions |
|
| 91 |
+
| **E06** | `c_cpp_systems_memory_models` | C99/C11, C++20/23, RAII, concurrency atomics, lock-free rings, memory orderings |
|
| 92 |
+
| **E07** | `rust_systems_concurrency` | Unsafe Rust, pointer provenance, Tokio runtime, crossbeam channels, borrow checker |
|
| 93 |
+
| **E08** | `go_distributed_backends` | Goroutines, Go scheduler internals, sync pools, low-latency microservices |
|
| 94 |
+
| **E09** | `asm_binary_reverse_engineering` | x86_64, ARM64, RISC-V disassembly, ELF/PE parsing, Ghidra decompilation |
|
| 95 |
+
| **E10** | `cybersec_red_team_pwn` | Heap exploitation, tcache poisoning, ROP/JOP chains, ASLR/DEP mitigations |
|
| 96 |
+
| **E11** | `cybersec_appsec_crypto` | Constant-time cryptography, AES-GCM, TLS 1.3 protocol verification, threat models |
|
| 97 |
+
| **E12** | `software_architecture_full_system` | C4 blueprints, Domain-Driven Design (DDD), clean architecture, event sourcing |
|
| 98 |
+
| **E13** | `distributed_systems_consensus` | Raft, Multi-Paxos, Kafka partitions, 2PC/Saga distributed transactions |
|
| 99 |
+
| **E14** | `database_internals_storage` | LSM-trees, B+Trees, Write-Ahead Logs (WAL), MVCC engines, query planners |
|
| 100 |
+
| **E15** | `networking_protocols_kernel` | TCP/IP stack tuning, QUIC, HTTP/3, AF_XDP, zero-copy packet processing |
|
| 101 |
+
| **E16** | `compilers_interpreters_jit` | LLVM IR passes, AST transformations, register allocation, SSA form |
|
| 102 |
+
| **E17** | `enterprise_polyglot_tier1` | Modern Python, Java/Kotlin, C#/.NET, TypeScript, PostgreSQL/MySQL |
|
| 103 |
+
| **E18** | `cloud_native_devops_infra` | Kubernetes operators, Docker/OCI runtimes, Terraform, NixOS, Prometheus |
|
| 104 |
+
| **E19** | `vague_prompt_intent_disambiguation` | Implied context deduction, sensible engineering defaults, interactive clarification |
|
| 105 |
+
| **E20** | `epistemic_calibration_research` | Uncertainty assessment, zero-hallucination verification, fact-checking citations |
|
| 106 |
+
| **E21** | `top20_polyglot_linguistics` | Technical vocabulary and syntax across top 20 global languages (EN, PT, ES, etc.) |
|
| 107 |
+
| **E22** | `high_eq_senior_tech_lead_persona` | Constructive, articulate, and patient technical communication persona |
|
| 108 |
+
| **E23** | `formal_verification_debugging` | TLA+ specifications, Model Checking, Valgrind, AddressSanitizer, Linux perf profiling |
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## Training Convergence
|
| 113 |
+
|
| 114 |
+
The model was trained on the consolidated Mark Ultra-Master Curriculum with multi-objective optimization:
|
| 115 |
+
|
| 116 |
+
$$\mathcal{L}_{\text{Total}} = \mathcal{L}_{\text{NTP}} + 0.3 \cdot \mathcal{L}_{\text{MTP}} + 10^{-4} \cdot \mathcal{L}_{\text{Router\_Z}}$$
|
| 117 |
+
|
| 118 |
+
- **Initial Loss:** 11.4500
|
| 119 |
+
- **Final Pre-training Loss:** **1.9047**
|
| 120 |
+
- Next-Token Prediction (NTP) Loss: **1.2952**
|
| 121 |
+
- Knowledge Distillation (KD) Loss: **0.4190**
|
| 122 |
+
- Multi-Token Prediction (MTP) Loss: **0.1905**
|
| 123 |
+
- Router Z-Loss: Stable ($< 1.2 \times 10^{-4}$)
|
| 124 |
+
- **Learning Rate Schedule:** Cosine decay with linear warmup ($1.2 \times 10^{-4} \rightarrow 1.0 \times 10^{-5}$)
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## Quickstart: Plug and Play Deployment
|
| 129 |
+
|
| 130 |
+
### 1. Ollama (Recommended)
|
| 131 |
+
|
| 132 |
+
1. Download the quantized model file `mark_engineer_v2_8b_iq4_nl.gguf` from the Releases section.
|
| 133 |
+
2. Create a `Modelfile`:
|
| 134 |
+
|
| 135 |
+
```dockerfile
|
| 136 |
+
FROM ./mark_engineer_v2_8b_iq4_nl.gguf
|
| 137 |
+
|
| 138 |
+
TEMPLATE """<|im_start|>system
|
| 139 |
+
{{ .System }}<|im_end|>
|
| 140 |
+
<|im_start|>user
|
| 141 |
+
{{ .Prompt }}<|im_end|>
|
| 142 |
+
<|im_start|>assistant
|
| 143 |
+
<think>
|
| 144 |
+
"""
|
| 145 |
+
|
| 146 |
+
PARAMETER stop "<|im_end|>"
|
| 147 |
+
PARAMETER stop "<|endoftext|>"
|
| 148 |
+
PARAMETER temperature 0.2
|
| 149 |
+
PARAMETER top_p 0.95
|
| 150 |
+
|
| 151 |
+
SYSTEM """Voce e o Mark Engineer V2 8B, um modelo de sistemas e engenharia de software de altissima capacidade."""
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
3. Register and run the model:
|
| 155 |
+
|
| 156 |
+
```bash
|
| 157 |
+
ollama create mark-engineer-v2-8b -f Modelfile
|
| 158 |
+
ollama run mark-engineer-v2-8b
|
| 159 |
+
```
|
| 160 |
+
|
| 161 |
+
---
|
| 162 |
+
|
| 163 |
+
### 2. LM Studio / llama.cpp
|
| 164 |
+
|
| 165 |
+
Load `mark_engineer_v2_8b_iq4_nl.gguf` directly into LM Studio or llama.cpp:
|
| 166 |
+
|
| 167 |
+
```bash
|
| 168 |
+
./llama-cli -m mark_engineer_v2_8b_iq4_nl.gguf -p "Implement a lock-free ring buffer in Rust using atomic pointers." -n 1024 --temp 0.2
|
| 169 |
+
```
|
| 170 |
+
|
| 171 |
+
---
|
| 172 |
+
|
| 173 |
+
### 3. PyTorch / Transformers
|
| 174 |
+
|
| 175 |
+
```python
|
| 176 |
+
import torch
|
| 177 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 178 |
+
|
| 179 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 180 |
+
"miceworks/Mark-Engineer-V2-8B",
|
| 181 |
+
trust_remote_code=True,
|
| 182 |
+
torch_dtype=torch.bfloat16,
|
| 183 |
+
device_map="auto"
|
| 184 |
+
)
|
| 185 |
+
tokenizer = AutoTokenizer.from_pretrained("miceworks/Mark-Engineer-V2-8B")
|
| 186 |
+
|
| 187 |
+
inputs = tokenizer("<|im_start|>user\nExplain the slab allocator in the Linux kernel.<|im_end|>\n<|im_start|>assistant\n", return_tensors="pt").to("cuda")
|
| 188 |
+
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.2)
|
| 189 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 190 |
+
```
|
| 191 |
+
|
| 192 |
+
---
|
| 193 |
+
|
| 194 |
+
## License
|
| 195 |
+
|
| 196 |
+
GNU Affero General Public License v3.0 (AGPL-3.0). Free for open-source research and community deployment.
|