Text Generation
Transformers
Safetensors
English
jarvis_titan_moe
Mixture of Experts
deepseek-moe
titans-neural-memory
tri-brid-memory
differential-holographic-attention
dha-3
csa3-perturbative-attention
multi-token-prediction
reasoning
math
code
agentic
long-context
conversational
custom_code
Instructions to use dhanesh-hf/Jarvis-Titan-M4-Activated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dhanesh-hf/Jarvis-Titan-M4-Activated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dhanesh-hf/Jarvis-Titan-M4-Activated", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("dhanesh-hf/Jarvis-Titan-M4-Activated", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dhanesh-hf/Jarvis-Titan-M4-Activated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dhanesh-hf/Jarvis-Titan-M4-Activated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dhanesh-hf/Jarvis-Titan-M4-Activated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dhanesh-hf/Jarvis-Titan-M4-Activated
- SGLang
How to use dhanesh-hf/Jarvis-Titan-M4-Activated 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 "dhanesh-hf/Jarvis-Titan-M4-Activated" \ --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": "dhanesh-hf/Jarvis-Titan-M4-Activated", "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 "dhanesh-hf/Jarvis-Titan-M4-Activated" \ --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": "dhanesh-hf/Jarvis-Titan-M4-Activated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dhanesh-hf/Jarvis-Titan-M4-Activated with Docker Model Runner:
docker model run hf.co/dhanesh-hf/Jarvis-Titan-M4-Activated
Sync config.json from Phase 0 base
Browse files- config.json +126 -0
config.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"transformers_version": "5.12.1",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"JarvisTitanMoEForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"return_dict": true,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"chunk_size_feed_forward": 0,
|
| 10 |
+
"is_encoder_decoder": false,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "LABEL_0",
|
| 13 |
+
"1": "LABEL_1"
|
| 14 |
+
},
|
| 15 |
+
"label2id": {
|
| 16 |
+
"LABEL_0": 0,
|
| 17 |
+
"LABEL_1": 1
|
| 18 |
+
},
|
| 19 |
+
"problem_type": null,
|
| 20 |
+
"vocab_size": 152064,
|
| 21 |
+
"hidden_size": 3584,
|
| 22 |
+
"intermediate_size": 18944,
|
| 23 |
+
"num_hidden_layers": 28,
|
| 24 |
+
"num_attention_heads": 28,
|
| 25 |
+
"num_key_value_heads": 4,
|
| 26 |
+
"hidden_act": "silu",
|
| 27 |
+
"max_position_embeddings": 32768,
|
| 28 |
+
"initializer_range": 0.02,
|
| 29 |
+
"rms_norm_eps": 1e-06,
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"tie_word_embeddings": false,
|
| 32 |
+
"rope_parameters": {
|
| 33 |
+
"rope_theta": 1000000.0,
|
| 34 |
+
"rope_type": "default"
|
| 35 |
+
},
|
| 36 |
+
"use_sliding_window": false,
|
| 37 |
+
"sliding_window": 2048,
|
| 38 |
+
"max_window_layers": 28,
|
| 39 |
+
"layer_types": [
|
| 40 |
+
"full_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"full_attention",
|
| 53 |
+
"full_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"full_attention",
|
| 56 |
+
"full_attention",
|
| 57 |
+
"full_attention",
|
| 58 |
+
"full_attention",
|
| 59 |
+
"full_attention",
|
| 60 |
+
"full_attention",
|
| 61 |
+
"full_attention",
|
| 62 |
+
"full_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"full_attention",
|
| 65 |
+
"full_attention",
|
| 66 |
+
"full_attention",
|
| 67 |
+
"full_attention"
|
| 68 |
+
],
|
| 69 |
+
"attention_dropout": 0.0,
|
| 70 |
+
"pad_token_id": null,
|
| 71 |
+
"bos_token_id": 151643,
|
| 72 |
+
"eos_token_id": 151645,
|
| 73 |
+
"_name_or_path": "dhanesh-hf/Jarvis-Titan-V12-SFT-Merged",
|
| 74 |
+
"model_type": "jarvis_titan_moe",
|
| 75 |
+
"output_attentions": false,
|
| 76 |
+
"num_routed_experts": 8,
|
| 77 |
+
"num_shared_experts": 1,
|
| 78 |
+
"num_experts_per_tok": 2,
|
| 79 |
+
"expert_intermediate_size": 4736,
|
| 80 |
+
"routed_scaling_factor": 1.5,
|
| 81 |
+
"auto_map": {
|
| 82 |
+
"AutoConfig": "modeling_jarvis_titan_moe.JarvisTitanMoEConfig",
|
| 83 |
+
"AutoModelForCausalLM": "modeling_jarvis_titan_moe.JarvisTitanMoEForCausalLM"
|
| 84 |
+
},
|
| 85 |
+
"m4_calibrated": true,
|
| 86 |
+
"architecture_milestone": "M4",
|
| 87 |
+
"injection_layers": [
|
| 88 |
+
3,
|
| 89 |
+
7,
|
| 90 |
+
11,
|
| 91 |
+
15,
|
| 92 |
+
19,
|
| 93 |
+
23,
|
| 94 |
+
27
|
| 95 |
+
],
|
| 96 |
+
"memory_dim": 512,
|
| 97 |
+
"d_reservoir": 512,
|
| 98 |
+
"sliding_window_size": 2048,
|
| 99 |
+
"tribrid_target_distribution": [
|
| 100 |
+
0.55,
|
| 101 |
+
0.25,
|
| 102 |
+
0.2
|
| 103 |
+
],
|
| 104 |
+
"upstream_m4_adapter": "dhanesh-hf/Jarvis-Titan-M4-Calibrated-Adapter",
|
| 105 |
+
"base_backbone": "dhanesh-hf/Jarvis-Titan-V14-MoE-Merged",
|
| 106 |
+
"m4_architecture": "tribrid_dha3_mtp",
|
| 107 |
+
"dha3_holographic_decoupling": true,
|
| 108 |
+
"dha3_anchor_interval": 4,
|
| 109 |
+
"csa3_delta_caching": true,
|
| 110 |
+
"csa3_anchor_interval": 4,
|
| 111 |
+
"m4_bridge_layers": [
|
| 112 |
+
3,
|
| 113 |
+
7,
|
| 114 |
+
11,
|
| 115 |
+
15,
|
| 116 |
+
19,
|
| 117 |
+
23,
|
| 118 |
+
27
|
| 119 |
+
],
|
| 120 |
+
"dynamic_mag_gating": true,
|
| 121 |
+
"dynamic_mag_soft_floor": 0.05,
|
| 122 |
+
"fim_regularization_lambda": 0.005,
|
| 123 |
+
"mtp_num_targets": 1,
|
| 124 |
+
"license": "other",
|
| 125 |
+
"license_name": "jtrl-v1.0"
|
| 126 |
+
}
|