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
File size: 2,550 Bytes
c85606c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | """
Hugging Face Transformers Configuration for Mark-Engineer-V2-8B
"""
from transformers.configuration_utils import PretrainedConfig
class MarkEngineerV2_8BConfig(PretrainedConfig):
model_type = "mark_engineer_v2_8b"
keys_to_ignore_at_inference = ["past_key_values"]
def __init__(
self,
vocab_size: int = 49152,
hidden_size: int = 2560,
num_hidden_layers: int = 32,
num_attention_heads: int = 32,
num_key_value_heads: int = 8,
q_lora_rank: int = 1024,
kv_lora_rank: int = 512,
qk_nope_head_dim: int = 64,
qk_rope_head_dim: int = 32,
v_head_dim: int = 80,
intermediate_size: int = 7680,
n_dense_layers: int = 2,
n_shared_experts: int = 1,
n_routed_experts: int = 24,
num_experts_per_tok: int = 2,
moe_intermediate_size: int = 1254,
router_bias_update_rate: float = 1e-3,
mtp_depth: int = 1,
mtp_loss_weight: float = 0.3,
max_position_embeddings: int = 8192,
rope_theta: float = 500000.0,
rms_norm_eps: float = 1e-5,
tie_word_embeddings: bool = True,
bos_token_id: int = 1,
eos_token_id: int = 2,
pad_token_id: int = 0,
**kwargs,
):
super().__init__(
bos_token_id=bos_token_id,
eos_token_id=eos_token_id,
pad_token_id=pad_token_id,
tie_word_embeddings=tie_word_embeddings,
**kwargs,
)
self.vocab_size = vocab_size
self.hidden_size = hidden_size
self.num_hidden_layers = num_hidden_layers
self.num_attention_heads = num_attention_heads
self.num_key_value_heads = num_key_value_heads
self.q_lora_rank = q_lora_rank
self.kv_lora_rank = kv_lora_rank
self.qk_nope_head_dim = qk_nope_head_dim
self.qk_rope_head_dim = qk_rope_head_dim
self.v_head_dim = v_head_dim
self.intermediate_size = intermediate_size
self.n_dense_layers = n_dense_layers
self.n_shared_experts = n_shared_experts
self.n_routed_experts = n_routed_experts
self.num_experts_per_tok = num_experts_per_tok
self.moe_intermediate_size = moe_intermediate_size
self.router_bias_update_rate = router_bias_update_rate
self.mtp_depth = mtp_depth
self.mtp_loss_weight = mtp_loss_weight
self.max_position_embeddings = max_position_embeddings
self.rope_theta = rope_theta
self.rms_norm_eps = rms_norm_eps
|