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
Download configuration_mark_engineer_v2_8b.py from miceworks/Mark-Engineer-V2-8B: direct link, hf CLI and curl.
- Browser
- Download file 2.55 kB
-
https://huggingface.co/miceworks/Mark-Engineer-V2-8B/resolve/main/configuration_mark_engineer_v2_8b.py
- Command line
-
hf download hf://miceworks/Mark-Engineer-V2-8B/configuration_mark_engineer_v2_8b.py
-
curl -L -o configuration_mark_engineer_v2_8b.py https://huggingface.co/miceworks/Mark-Engineer-V2-8B/resolve/main/configuration_mark_engineer_v2_8b.py
2.55 kB
| """ | |
| 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 | |