Instructions to use meituan-longcat/LongCat-Flash-Lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meituan-longcat/LongCat-Flash-Lite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="meituan-longcat/LongCat-Flash-Lite", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("meituan-longcat/LongCat-Flash-Lite", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use meituan-longcat/LongCat-Flash-Lite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meituan-longcat/LongCat-Flash-Lite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meituan-longcat/LongCat-Flash-Lite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/meituan-longcat/LongCat-Flash-Lite
- SGLang
How to use meituan-longcat/LongCat-Flash-Lite 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 "meituan-longcat/LongCat-Flash-Lite" \ --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": "meituan-longcat/LongCat-Flash-Lite", "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 "meituan-longcat/LongCat-Flash-Lite" \ --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": "meituan-longcat/LongCat-Flash-Lite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use meituan-longcat/LongCat-Flash-Lite with Docker Model Runner:
docker model run hf.co/meituan-longcat/LongCat-Flash-Lite
Commit History
-
Upload tech_report.pdf
Verified signatureb62b688 -
Update generation_config.json
Verified signature35c13d9
-
Update Readme.md
Verified signatureUpdate Readme.mdc943396
-
Update README.md
Verified signatureUpdate README.md1e2e5b2 -
Delete model-00037-of-00038.safetensors
Verified signature682dc7c -
Delete model-00036-of-00038.safetensors
Verified signature858da1d -
Delete model-00035-of-00038.safetensors
Verified signatureebdf136 -
Delete model-00034-of-00038.safetensors
Verified signature1c09668 -
Delete model-00033-of-00038.safetensors
Verified signature998a805 -
Delete model-00032-of-00038.safetensors
Verified signature486d61b -
Delete model-00031-of-00038.safetensors
Verified signature3820282 -
Delete model-00030-of-00038.safetensors
Verified signature5543b9e -
Delete model-00029-of-00038.safetensors
Verified signaturee43b98b -
Delete model-00028-of-00038.safetensors
Verified signature8e0de10 -
Delete model-00027-of-00038.safetensors
Verified signature6f4df27 -
Delete model-00026-of-00038.safetensors
Verified signatureee1aba8 -
Delete model-00025-of-00038.safetensors
Verified signature391bae5 -
Delete model-00024-of-00038.safetensors
Verified signature6ebbe49 -
Delete model-00023-of-00038.safetensors
Verified signature70ce04e -
Delete model-00022-of-00038.safetensors
Verified signature5b73442 -
Delete model-00021-of-00038.safetensors
Verified signature65dd3a9 -
Delete model-00020-of-00038.safetensors
Verified signaturef222af4 -
Delete model-00019-of-00038.safetensors
Verified signature5c07702 -
Delete model-00018-of-00038.safetensors
Verified signaturecf94a38 -
Delete model-00017-of-00038.safetensors
Verified signature7b43a63 -
Delete model-00016-of-00038.safetensors
Verified signature3365e5c -
Delete model-00015-of-00038.safetensors
Verified signature7cbb86c -
Delete model-00014-of-00038.safetensors
Verified signature6f651a8 -
Delete model-00013-of-00038.safetensors
Verified signatured25727b -
Delete model-00012-of-00038.safetensors
Verified signature8a52ab3 -
Delete model-00011-of-00038.safetensors
Verified signature354e8a7 -
Delete model-00010-of-00038.safetensors
Verified signature2833516 -
Delete model-00009-of-00038.safetensors
Verified signaturea64ed12 -
Delete model-00008-of-00038.safetensors
Verified signature302daac -
Delete model-00007-of-00038.safetensors
Verified signature74fbaa0 -
Delete model-00006-of-00038.safetensors
Verified signature61460f2 -
Delete model-00005-of-00038.safetensors
Verified signature19ec783 -
Delete model-00004-of-00038.safetensors
Verified signatureda9e698 -
Delete model-00003-of-00038.safetensors
Verified signatureba031b2 -
Delete model-00002-of-00038.safetensors
Verified signature1c724e1 -
Delete model-00001-of-00038.safetensors
Verified signature7715f72 -
Delete model-00000-of-00038.safetensors
Verified signature9b586aa -
Upload model-00025-of-00026.safetensors with huggingface_hub
Verified signature7209551 -
Upload model-00024-of-00026.safetensors with huggingface_hub
Verified signature6f900dd -
Upload model-00023-of-00026.safetensors with huggingface_hub
Verified signature71463bb -
Upload model-00022-of-00026.safetensors with huggingface_hub
Verified signatureec6b582 -
Upload model-00021-of-00026.safetensors with huggingface_hub
Verified signature86d89a5 -
Upload model-00020-of-00026.safetensors with huggingface_hub
Verified signature4334832 -
Upload model-00019-of-00026.safetensors with huggingface_hub
Verified signature4ea7133 -
Upload model-00018-of-00026.safetensors with huggingface_hub
Verified signatureef1bd77