Text Generation
Transformers
outlier_150b_rexmoe
mixture-of-experts
Mixture of Experts
ternary
quantized
qwen2.5
outlier
local-llm
on-device
edge-ai
energy-efficient
sparse
overlay
research
apple-silicon
mac
mmlu-verified
custom_code
Eval Results (legacy)
Instructions to use Outlier-Ai/Outlier-150B-V3.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Outlier-Ai/Outlier-150B-V3.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Outlier-Ai/Outlier-150B-V3.2", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Outlier-Ai/Outlier-150B-V3.2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Outlier-Ai/Outlier-150B-V3.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Outlier-Ai/Outlier-150B-V3.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Outlier-Ai/Outlier-150B-V3.2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Outlier-Ai/Outlier-150B-V3.2
- SGLang
How to use Outlier-Ai/Outlier-150B-V3.2 with 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 "Outlier-Ai/Outlier-150B-V3.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Outlier-Ai/Outlier-150B-V3.2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Outlier-Ai/Outlier-150B-V3.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Outlier-Ai/Outlier-150B-V3.2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Outlier-Ai/Outlier-150B-V3.2 with Docker Model Runner:
docker model run hf.co/Outlier-Ai/Outlier-150B-V3.2
Upload config.json with huggingface_hub
Browse files- config.json +87 -0
config.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 151643,
|
| 7 |
+
"eos_token_id": 151645,
|
| 8 |
+
"hidden_act": "silu",
|
| 9 |
+
"hidden_size": 8192,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"intermediate_size": 29568,
|
| 12 |
+
"max_position_embeddings": 32768,
|
| 13 |
+
"max_window_layers": 70,
|
| 14 |
+
"model_type": "outlier_150b_rexmoe",
|
| 15 |
+
"num_attention_heads": 64,
|
| 16 |
+
"num_hidden_layers": 80,
|
| 17 |
+
"num_key_value_heads": 8,
|
| 18 |
+
"rms_norm_eps": 1e-06,
|
| 19 |
+
"rope_theta": 1000000.0,
|
| 20 |
+
"sliding_window": 131072,
|
| 21 |
+
"tie_word_embeddings": false,
|
| 22 |
+
"torch_dtype": "bfloat16",
|
| 23 |
+
"transformers_version": "4.43.1",
|
| 24 |
+
"use_cache": true,
|
| 25 |
+
"use_sliding_window": false,
|
| 26 |
+
"vocab_size": 152064,
|
| 27 |
+
"base_model_name_or_path": "/mnt/1tb/Qwen2.5-72B-Instruct",
|
| 28 |
+
"moe_layers": [
|
| 29 |
+
18,
|
| 30 |
+
19,
|
| 31 |
+
20,
|
| 32 |
+
21,
|
| 33 |
+
22,
|
| 34 |
+
23,
|
| 35 |
+
24,
|
| 36 |
+
25,
|
| 37 |
+
26,
|
| 38 |
+
27,
|
| 39 |
+
28,
|
| 40 |
+
29,
|
| 41 |
+
30,
|
| 42 |
+
31,
|
| 43 |
+
32,
|
| 44 |
+
33,
|
| 45 |
+
34,
|
| 46 |
+
35,
|
| 47 |
+
36,
|
| 48 |
+
37,
|
| 49 |
+
38,
|
| 50 |
+
39,
|
| 51 |
+
40,
|
| 52 |
+
41,
|
| 53 |
+
42,
|
| 54 |
+
43,
|
| 55 |
+
44,
|
| 56 |
+
45,
|
| 57 |
+
46,
|
| 58 |
+
47,
|
| 59 |
+
48,
|
| 60 |
+
49,
|
| 61 |
+
50,
|
| 62 |
+
51,
|
| 63 |
+
52,
|
| 64 |
+
53,
|
| 65 |
+
54,
|
| 66 |
+
55,
|
| 67 |
+
56,
|
| 68 |
+
57,
|
| 69 |
+
58,
|
| 70 |
+
59,
|
| 71 |
+
60,
|
| 72 |
+
61
|
| 73 |
+
],
|
| 74 |
+
"n_experts": 8,
|
| 75 |
+
"top_k": 2,
|
| 76 |
+
"psr_scales": [
|
| 77 |
+
0.7,
|
| 78 |
+
0.9,
|
| 79 |
+
1.1,
|
| 80 |
+
1.3
|
| 81 |
+
],
|
| 82 |
+
"group_size": 4,
|
| 83 |
+
"auto_map": {
|
| 84 |
+
"AutoConfig": "configuration_outlier_150b_rexmoe.OutlierReXMoEConfig",
|
| 85 |
+
"AutoModelForCausalLM": "modeling_outlier_150b_rexmoe.OutlierReXMoEForCausalLM"
|
| 86 |
+
}
|
| 87 |
+
}
|