Instructions to use Skdarkdevil/LongCat-Flash-Omni with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skdarkdevil/LongCat-Flash-Omni with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Skdarkdevil/LongCat-Flash-Omni", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Skdarkdevil/LongCat-Flash-Omni: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/Skdarkdevil/LongCat-Flash-Omni/resolve/main/config.json
- Command line
-
hf download hf://Skdarkdevil/LongCat-Flash-Omni/config.json
-
curl -L -o config.json https://huggingface.co/Skdarkdevil/LongCat-Flash-Omni/resolve/main/config.json
1 kB
| { | |
| "architectures": [ | |
| "LongcatFlashOmniForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "configuration_longcat_flash.LongcatFlashConfig", | |
| "AutoModel": "modeling_longcat_flash.LongcatFlashModel", | |
| "AutoModelForCausalLM": "modeling_longcat_flash.LongcatFlashForCausalLM" | |
| }, | |
| "vocab_size": 131072, | |
| "hidden_size": 6144, | |
| "ffn_hidden_size": 12288, | |
| "expert_ffn_hidden_size": 2048, | |
| "num_layers": 28, | |
| "num_attention_heads": 64, | |
| "kv_lora_rank": 512, | |
| "q_lora_rank": 1536, | |
| "qk_rope_head_dim": 64, | |
| "v_head_dim": 128, | |
| "qk_nope_head_dim": 128, | |
| "mla_scale_q_lora": true, | |
| "mla_scale_kv_lora": true, | |
| "routed_scaling_factor": 6.0, | |
| "n_routed_experts": 512, | |
| "max_position_embeddings": 131072, | |
| "rms_norm_eps": 1e-5, | |
| "use_cache": true, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "rope_theta": 10000000.0, | |
| "attention_method": "MLA", | |
| "zero_expert_num": 256, | |
| "zero_expert_type": "identity", | |
| "moe_topk": 12 | |
| } | |