Text Generation
Transformers
Safetensors
PyTorch
English
French
tr_hash_moe
tr-hash
mixture-of-experts
gqa
supervised-finetuning
full-parameter-finetuning
custom-code
conversational
custom_code
Instructions to use AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT
- SGLang
How to use AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT 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 "AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT" \ --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": "AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT", "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 "AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT" \ --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": "AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT with Docker Model Runner:
docker model run hf.co/AETHORIA-AI/TR-HASH-MoE-200M-160B-SFT
Add epoch 3 MLX FP16 evaluation export
Browse files- training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/chat_template.jinja +1 -0
- training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/chat_template.json +20 -0
- training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/config.json +28 -0
- training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/model.safetensors +3 -0
- training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/special_tokens_map.json +6 -0
- training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/tokenizer.json +0 -0
- training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/tokenizer_config.json +46 -0
training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/chat_template.jinja
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{{- "" -}}{%- for message in messages -%}{%- if message['role'] == 'system' -%}{{- "System:\n" + (message['content'] | trim) + "\n\n" -}}{%- elif message['role'] == 'user' -%}{{- "User:\n" + (message['content'] | trim) + "\n\n" -}}{%- elif message['role'] == 'assistant' -%}{{- "Assistant:\n" + (message['content'] | trim) + eos_token -}}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{- "Assistant:\n" -}}{%- endif -%}
|
training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/chat_template.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"assistant_envelope": {
|
| 3 |
+
"final_end": "\n</final>",
|
| 4 |
+
"final_start": "\n<final>\n",
|
| 5 |
+
"scope": "reasoning_tasks",
|
| 6 |
+
"think_end": "\n</think>",
|
| 7 |
+
"think_start": "<think>\n",
|
| 8 |
+
"type": "optional_think_final"
|
| 9 |
+
},
|
| 10 |
+
"assistant_only_loss": true,
|
| 11 |
+
"assistant_prefix": "Assistant:\n",
|
| 12 |
+
"eos_token": "</s>",
|
| 13 |
+
"id": "complexity-chat-v2",
|
| 14 |
+
"system_format": "System:\n{content}\n\n",
|
| 15 |
+
"system_prompt": "",
|
| 16 |
+
"training_projection": "naturalize_card_hand_supervise_all_assistant_turns",
|
| 17 |
+
"turn_separator": "\n\n",
|
| 18 |
+
"user_format": "User:\n{content}\n\n",
|
| 19 |
+
"version": 2
|
| 20 |
+
}
|
training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/config.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "complexity",
|
| 3 |
+
"vocab_size": 32000,
|
| 4 |
+
"mlp_type": "token_routed",
|
| 5 |
+
"norm_eps": 1e-06,
|
| 6 |
+
"shared_expert": true,
|
| 7 |
+
"use_shared_routed_gates": false,
|
| 8 |
+
"num_attention_heads": 14,
|
| 9 |
+
"num_experts": 4,
|
| 10 |
+
"top_k": 2,
|
| 11 |
+
"rope_theta": 10000.0,
|
| 12 |
+
"shared_intermediate_size": 3072,
|
| 13 |
+
"top_k_primary_weight": 0.5,
|
| 14 |
+
"num_key_value_heads": 2,
|
| 15 |
+
"num_hidden_layers": 16,
|
| 16 |
+
"learn_hash_channel_modulation": false,
|
| 17 |
+
"route_hash_count": 2,
|
| 18 |
+
"routing_strategy": "token_id_multi_hash",
|
| 19 |
+
"use_qk_norm": true,
|
| 20 |
+
"hidden_size": 896,
|
| 21 |
+
"max_position_embeddings": 2048,
|
| 22 |
+
"intermediate_size": 256,
|
| 23 |
+
"routed_output_scale": 2.0,
|
| 24 |
+
"hash_channel_scale_init": 0.0,
|
| 25 |
+
"tie_word_embeddings": true,
|
| 26 |
+
"shared_output_scale": 1.0,
|
| 27 |
+
"rope_traditional": false
|
| 28 |
+
}
|
training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0150dd416ff56fcccd42381831b129d2ff94dceb3225a2c61e682d9aa2c067f
|
| 3 |
+
size 408560864
|
training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/special_tokens_map.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"eos_token": "</s>",
|
| 4 |
+
"pad_token": "<pad>",
|
| 5 |
+
"unk_token": "<unk>"
|
| 6 |
+
}
|
training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training/sft-v2-300k/checkpoints/step_005982/mlx-fp16/tokenizer_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": true,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"0": {
|
| 6 |
+
"content": "</s>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"1": {
|
| 14 |
+
"content": "<pad>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"2": {
|
| 22 |
+
"content": "<s>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"3": {
|
| 30 |
+
"content": "<unk>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"bos_token": "<s>",
|
| 39 |
+
"clean_up_tokenization_spaces": false,
|
| 40 |
+
"eos_token": "</s>",
|
| 41 |
+
"extra_special_tokens": {},
|
| 42 |
+
"model_max_length": 2048,
|
| 43 |
+
"pad_token": "<pad>",
|
| 44 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 45 |
+
"unk_token": "<unk>"
|
| 46 |
+
}
|