Any-to-Any
Safetensors
Transformers
LongCat-Next
longcat_next
text-generation
multimodal
custom_code
Instructions to use Artificial-Production-Units/LongCat-Next with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Artificial-Production-Units/LongCat-Next with Transformers:
# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Artificial-Production-Units/LongCat-Next", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 934 Bytes
1a835c5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | {
"bos_token_id": 1,
"eos_token_id": 2,
"pad_token_id": 3,
"max_new_tokens": 2048,
"do_sample": true,
"temperature": 0.4,
"top_k": 20,
"top_p": 0.85,
"repetition_penalty": 1.1,
"visual_generation_config": {
"do_sample": true,
"temperature": 0.5,
"top_p": 0.75,
"top_k": 1024,
"custom_params": {
"cfg_scale": 3.0,
"token_h": 37,
"token_w": 37,
"anyres_prefix": "<longcat_img_token_size>{h} {w}</longcat_img_token_size>"
}
},
"audio_generation_config": {
"audio_parallel_decoding": false,
"do_sample": true,
"temperature": 0.5,
"top_k": 5,
"top_p": 0.85,
"repetition_penalty": 1.3,
"custom_params": {
"sampling_rate": 24000,
"wave_concat_overlap": 1200
}
},
"transformers_version": "4.57.6"
} |