How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "RDson/Llama-3-Magenta-Instruct-4x8B-MoE" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "RDson/Llama-3-Magenta-Instruct-4x8B-MoE",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "RDson/Llama-3-Magenta-Instruct-4x8B-MoE" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "RDson/Llama-3-Magenta-Instruct-4x8B-MoE",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Llama-3-Magenta-Instruct-4x8B-MoE

You should also check out the updated Llama-3-Peach-Instruct-4x8B-MoE!

GGUF files are available here: Llama-3-Magenta-Instruct-4x8B-MoE-GGUF.

This is a experimental MoE using Mergekit, created from

Mergekit yaml file:

base_model: Meta-Llama-3-8B-Instruct
experts:
  - source_model: Meta-Llama-3-8B-Instruct
    positive_prompts:
    - "explain"
    - "chat"
    - "assistant"
    - "think"
    - "roleplay"
    - "versatile"
    - "helpful"
    - "factual"
    - "integrated"
    - "adaptive"
    - "comprehensive"
    - "balanced"
    negative_prompts:
    - "specialized"
    - "narrow"
    - "focused"
    - "limited"
    - "specific"
  - source_model: ChatQA-1.5-8B
    positive_prompts:
    - "python"
    - "math"
    - "solve"
    - "code"
    - "programming"
    negative_prompts:
    - "sorry"
    - "cannot"
    - "factual"
    - "concise"
    - "straightforward"
    - "objective"
    - "dry"
  - source_model: SFR-Iterative-DPO-LLaMA-3-8B-R
    positive_prompts:
    - "chat"
    - "assistant"
    - "AI"
    - "instructive"
    - "clear"
    - "directive"
    - "helpful"
    - "informative"
  - source_model: Llama3-8B-OpenHermes-DPO
    positive_prompts:
    - "analytical"
    - "accurate"
    - "logical"
    - "knowledgeable"
    - "precise"
    - "calculate"
    - "compute"
    - "solve"
    - "work"
    - "python"
    - "code"
    - "javascript"
    - "programming"
    - "algorithm"
    - "tell me"
    - "assistant"
    negative_prompts:
    - "creative"
    - "abstract"
    - "imaginative"
    - "artistic"
    - "emotional"
    - "mistake"
    - "inaccurate"
gate_mode: hidden
dtype: float16

Some inspiration for the Mergekit yaml file is from LoneStriker/Umbra-MoE-4x10.7-2.4bpw-h6-exl2.

Downloads last month
15
Safetensors
Model size
25B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for RDson/Llama-3-Magenta-Instruct-4x8B-MoE

Quantizations
1 model