Text Generation
Safetensors
Transformers
LongCat-Flash-Thinking-2601
conversational
custom_code
Eval Results
Instructions to use meituan-longcat/LongCat-Flash-Thinking-2601 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meituan-longcat/LongCat-Flash-Thinking-2601 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="meituan-longcat/LongCat-Flash-Thinking-2601", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import LongcatCausalLM model = LongcatCausalLM.from_pretrained("meituan-longcat/LongCat-Flash-Thinking-2601", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use meituan-longcat/LongCat-Flash-Thinking-2601 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-Thinking-2601" # 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-Thinking-2601", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/meituan-longcat/LongCat-Flash-Thinking-2601
- SGLang
How to use meituan-longcat/LongCat-Flash-Thinking-2601 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-Thinking-2601" \ --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-Thinking-2601", "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-Thinking-2601" \ --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-Thinking-2601", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use meituan-longcat/LongCat-Flash-Thinking-2601 with Docker Model Runner:
docker model run hf.co/meituan-longcat/LongCat-Flash-Thinking-2601
Upload search_tool_trajectory.txt
Browse files
examples/search_tool_trajectory.txt
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<longcat_tool_declare>
|
| 2 |
+
# Tools
|
| 3 |
+
You have access to the following tools:
|
| 4 |
+
|
| 5 |
+
## Tool namespace: function
|
| 6 |
+
|
| 7 |
+
### Tool name: search
|
| 8 |
+
Description: Web search, using traditional search engines like google, complex questions need to be broken down into simple queries
|
| 9 |
+
|
| 10 |
+
InputSchema: {"type": "object", "properties": {"query": {"type": "array", "items": {"type": "string"}, "description": "List of search queries. You can search up to 5 queries at the same time."}}, "required": ["query"]}
|
| 11 |
+
|
| 12 |
+
### Tool name: browse_with_goal
|
| 13 |
+
Description: Browse the webpages and get the goal related information
|
| 14 |
+
|
| 15 |
+
InputSchema: {"type": "object", "properties": {"url": {"type": "array", "items": {"type": "string"}, "description": "List of urls. You can browse up to 3 webpages at the same time."}, "goal": {"type": "string", "description": "The goal that needs to be focused on"}}, "required": ["url", "goal"]}
|
| 16 |
+
|
| 17 |
+
**Note**: For each function call, output the function name and arguments within the following XML format:
|
| 18 |
+
<longcat_tool_call>{function-name}
|
| 19 |
+
<longcat_arg_key>{arg-key-1}</longcat_arg_key>
|
| 20 |
+
<longcat_arg_value>{arg-value-1}</longcat_arg_value>
|
| 21 |
+
<longcat_arg_key>{arg-key-2}</longcat_arg_key>
|
| 22 |
+
<longcat_arg_value>{arg-value-2}</longcat_arg_value>
|
| 23 |
+
...
|
| 24 |
+
</longcat_tool_call>
|
| 25 |
+
</longcat_tool_declare><longcat_system>Your responsibility is to use all available tools to collect, summarize, and organize as much relevant information as possible to answer the user's question. Before providing an answer, carefully verify details from multiple perspectives to ensure your response is accurate and comprehensive. Do not ask the user any questions. You may briefly reflect before taking action. Enclose your final response within the <final_summary> and </final_summary> tags.<longcat_user>What is the main civilian airport of the capital city of China's only tropical province?
|
| 26 |
+
|
| 27 |
+
/think_on <longcat_assistant><longcat_think>
|
| 28 |
+
Got it, let's figure out this question step by step. First, the user is asking for the main civilian airport of the capital city of China's only tropical province.
|
| 29 |
+
|
| 30 |
+
First, I need to confirm which province in China is the only tropical one. I remember that Hainan is the southernmost province, and it's tropical. Let me verify that with a search to be sure.
|
| 31 |
+
</longcat_think>
|
| 32 |
+
<longcat_tool_call>search
|
| 33 |
+
<longcat_arg_key>query</longcat_arg_key>
|
| 34 |
+
<longcat_arg_value>["China only tropical province"]</longcat_arg_value>
|
| 35 |
+
</longcat_tool_call>
|
| 36 |
+
</longcat_s><longcat_observation><longcat_tool_response>search
|
| 37 |
+
[{"query": "China only tropical province", "search_result": [{"name": "Hainan - Wikipedia", "url": "https://en.wikipedia.org/wiki/Hainan", "snippet": "Hainan is an island province and the southernmost province of China consisting of the eponymous Hainan Island and various smaller islands in the South China ..."}, {"name": "China's Hidden Gem: The Shocking Transformation of Hainan", "url": "https://www.youtube.com/watch?v=iHpRM_x1AR4", "snippet": "a Tropical Powerhouse. Golden beaches, crystal-clear waters, lush rainforests, and a skyline that just keeps growing—Hainan is where nature ...", "datePublished": "Mar 12, 2025"}, {"name": "Hainan island: Known as 'China's Hawaii,' the vacation hotspot is ...", "url": "https://www.cnn.com/2023/02/15/china/china-hainan-island-explainer-intl-hnk", "snippet": "It's known as the “Hawaii of China,” a tropical island paradise where the Chinese middle class enjoys sandy beaches, five-star resorts, and duty-free luxury ...", "datePublished": "Feb 15, 2023"}, {"name": "This is China's only tropical island: HAINAN. At 18°N, Blue is her ...", "url": "https://www.instagram.com/reel/DPXbeW6kQU7/?hl=en", "snippet": "Located at the southernmost point of China, Hainan Province boasts exceptionally rich tourism resources. As China's only tropical coastal ...", "datePublished": "Oct 3, 2025"}, {"name": "Hainan is China's only tropical island province, accounting for 42.5 ...", "url": "https://x.com/CGTNOfficial/status/2000470883635495374", "snippet": "Hainan is China's only tropical island province, accounting for 42.5 percent of the country's tropical land area. With abundant sunshine and ...", "datePublished": "Dec 15, 2025"}, {"name": "Hainan is China's only tropical island province, accounting for ...", "url": "https://www.facebook.com/ChinaGlobalTVNetwork/posts/hainan-is-chinas-only-tropical-island-province-accounting-for-425-percent-of-the/1530666851760115/", "snippet": null}, {"name": "Overview of Hainan", "url": "http://en.hnftp.gov.cn/hainan/overview/", "snippet": "As China's only tropical island, Hainan's tourism resources are extremely rich-1944 kilometers of coastline, 68 wonderful bays, 81 mountains above 1,000 ..."}, {"name": "Hainan's tropical fruits go global under free trade port policies", "url": "https://news.cgtn.com/news/2025-12-15/Hainan-s-tropical-fruits-go-global-under-free-trade-port-policies-1J7jMWXHBo4/p.html", "snippet": "Hainan is China's only tropical island province, accounting for 42.5 percent of the country's tropical land area. With abundant sunshine and ..."}, {"name": "Hainan evolves as gateway to global markets", "url": "http://africa.chinadaily.com.cn/a/202512/18/WS69433b93a310d6866eb2f338.html", "snippet": "As China's only tropical province and a major maritime region, Hainan had natural advantages in developing these four industries. The four ..."}, {"name": "Tropical island province maintaining focus on developing ...", "url": "http://english.scio.gov.cn/pressroom/2019-09/17/content_75213897.htm", "snippet": "The only tropical island province in China, Hainan has 1,944 kilometers of coastline, 68 natural bays and more than 600 islands. In the capital ..."}]}]</longcat_tool_response> /think_on <longcat_assistant><longcat_think>
|
| 38 |
+
Okay, so the search results confirm that Hainan is China's only tropical province (specifically, an island province). Now, what's the capital city of Hainan? I think it's Haikou. Let me check that quickly to be sure.
|
| 39 |
+
</longcat_think>
|
| 40 |
+
<longcat_tool_call>search
|
| 41 |
+
<longcat_arg_key>query</longcat_arg_key>
|
| 42 |
+
<longcat_arg_value>["capital city of Hainan province"]</longcat_arg_value>
|
| 43 |
+
</longcat_tool_call>
|
| 44 |
+
</longcat_s><longcat_observation><longcat_tool_response>search
|
| 45 |
+
[{"query": "capital city of Hainan province", "search_result": [{"name": "Haikou", "url": "https://en.wikipedia.org/wiki/Haikou", "snippet": "Haikou is the capital and most populous city of the Chinese province of Hainan. Haikou city is situated on the northern coast of Hainan, by the mouth of the ..."}, {"name": "Hainan", "url": "https://en.wikipedia.org/wiki/Hainan", "snippet": "There are ten major cities and ten counties in Hainan Province. The capital of the province is Haikou, on the northern coast of Hainan Island, while Sanya is a ..."}, {"name": "Haikou", "url": "https://en.hainan.gov.cn/englishsite/Cities/202506/76231efa339f405fbb5ce6f633973421.shtml?ddtab=true", "snippet": "Haikou, also known as the \"Coconut City,\" located in the northern part of Hainan Island, is the capital city of Hainan province, a strategic pivot city in the ..."}, {"name": "Haikou | Capital of Hainan, Tropical Climate, Seafood", "url": "https://www.britannica.com/place/Haikou", "snippet": "Haikou, city and capital of Hainan sheng (province), southern China. It is situated on the north coast of Hainan Island, facing the Leizhou Peninsula, ..."}, {"name": "Haikou - the capital city of Hainan Province", "url": "https://www.chinatoday.com/city/haikou.htm", "snippet": "Haikou is the capital of Hainan Province, a tropical island just south of Guangdong Province. Separated from the mainland by the 30-kilometer-wide Qiongzhou ..."}, {"name": "Haikou, Hainan China's Southernmost Provincial Capital City ...", "url": "https://www.youtube.com/watch?v=tT2MhUP3j2I", "snippet": "Haikou(海口), the capital of Hainan Province(海南省), is a vibrant city that blends tropical abundance with cultural richness."}, {"name": "Haikou – Travel guide at Wikivoyage", "url": "https://en.wikivoyage.org/wiki/Haikou", "snippet": "Haikou (海口 Hǎikǒu) is the capital and largest city of Hainan Province in southern China and is at the north end of the Hainan Island. Haikou is a tropical ..."}, {"name": "7 Best Things to Do in Haikou: Top Haikou Attractions 2026", "url": "https://www.chinadiscovery.com/hainan/haikou/things-to-do.html", "snippet": "Haikou, the capital of Hainan Province, has been selected as one of the most charming cities in China. Although it is not as famous as Sanya, ..."}, {"name": "Haikou, Hainan, China 🇨🇳 Haikou is the capital and ...", "url": "https://www.facebook.com/groups/cityscapes/posts/2801537763371701/", "snippet": "Haikou, Hainan, China Haikou is the capital and largest city of Hainan Province, China. It is the 60th most populous city in the entire ..."}, {"name": "Hainan", "url": "https://www.itop-forum.org/index.php/contents/member/founding/hainan", "snippet": "Official Name. Hainan Province ; Capital City. Haikou ; Language. Chinese, Hainanese ; Population. 10.3 Million (2023) ; Climate. Subtropical to Tropical."}]}]</longcat_tool_response> /think_on <longcat_assistant><longcat_think>
|
| 46 |
+
Great, so the capital of Hainan is Haikou. Now, what's the main civilian airport in Haikou? I think it's Haikou Meilan International Airport. Let me confirm that with a search to be sure.
|
| 47 |
+
</longcat_think>
|
| 48 |
+
<longcat_tool_call>search
|
| 49 |
+
<longcat_arg_key>query</longcat_arg_key>
|
| 50 |
+
<longcat_arg_value>["main civilian airport Haikou"]</longcat_arg_value>
|
| 51 |
+
</longcat_tool_call>
|
| 52 |
+
</longcat_s><longcat_observation><longcat_tool_response>search
|
| 53 |
+
[{"query": "main civilian airport Haikou", "search_result": [{"name": "Haikou Meilan International Airport", "url": "https://en.wikipedia.org/wiki/Haikou_Meilan_International_Airport", "snippet": "Haikou Meilan International Airport is the largest and busiest airport in Hainan. In 2024, the passenger throughput was 26,890,365, ranking 19th among China's ..."}, {"name": "About Meilan", "url": "https://www.mlairport.com/mljcen/wap/AboutMeilan/", "snippet": "Haikou Meilan International Airport (hereinafter referred to as \"Meilan Airport\"), one of the prominent trunk airports in China, commenced its official ..."}, {"name": "DFS, Haikou Meilan International Airport (2026) - All You ...", "url": "https://www.tripadvisor.com/Attraction_Review-g297425-d3362700-Reviews-DFS_Haikou_Meilan_International_Airport-Haikou_Hainan.html", "snippet": "DFS, Haikou Meilan International Airport (2026) - All You Need to Know BEFORE You Go (with Reviews)"}, {"name": "Haikou Meilan International Airport - Hainan's Hub - UNIS", "url": "https://www.unisco.com/international-airports/haikou-meilan-intl-airport", "snippet": "Haikou Meilan International Airport is located 25 km southeast of Haikou city center and serves as the main international gateway for Hainan. It was opened ..."}, {"name": "Haikou Meilan International - Airport", "url": "https://skybrary.aero/airports/zjhk", "snippet": "Haikou Meilan International Airport is the largest and newest airport on the island of Hainan in the People's Republic of China."}, {"name": "Haikou Meilan International Airport 海口美兰国际机场 ...", "url": "https://skytraxratings.com/airports/haikou-meilan-airport-rating", "snippet": "Haikou Meilan Airport 海口美兰国际机场 is a 5-Star Airport for comfort and cleanliness, shopping, food & beverages, staff service and customer experience."}, {"name": "Haikou Meilan International Airport", "url": "https://grokipedia.com/page/Haikou_Meilan_International_Airport", "snippet": "Haikou Meilan International Airport (IATA: HAK, ICAO: ZJHK) is the primary international airport serving Haikou, the capital city of Hainan Province in the ..."}, {"name": "Haikou Meilan International Airport (HAK/ZJHK) | Arrivals, ...", "url": "https://www.flightradar24.com/data/airports/hak", "snippet": "Haikou Meilan International Airport, (HAK/ZJHK), China - View live flight arrival and departure information, live flight delays and cancelations, ..."}, {"name": "Haikou Meilan International Airport", "url": "https://en.hainan.gov.cn/englishsite/mr7/202506/e67669918ab34ce7be0ac7ee943ae975.shtml?ddtab=true", "snippet": "Haikou Meilan International Airport is one of Hainan's three entry and exit airports for overseas visitors, located in Lingshan town, Meilan district in Haikou."}, {"name": "Haikou Hainan Meilan International Airport Profile", "url": "https://centreforaviation.com/data/profiles/airports/haikou-hainan-meilan-international-airport-hak", "snippet": "Hainan Meilan International Airport is a major airport located in Haikou and the gateway to Hainan Island. The airport is 25 kilometres southeast of the city."}]}]</longcat_tool_response> /think_on <longcat_assistant><longcat_think>
|
| 54 |
+
Impeccable, the search results confirm that Haikou Meilan International Airport is the main civilian airport serving Haikou, the capital of Hainan (China's only tropical province). Let me just double-check the Wikipedia page to make sure it's the primary one. Wait, the snippet says it's the largest and busiest in Hainan, and the primary international airport for Haikou. That should be the answer. So putting it all together: the main civilian airport is Haikou Meilan International Airport.
|
| 55 |
+
</longcat_think>
|
| 56 |
+
<final_summary>
|
| 57 |
+
First, China's only tropical province is confirmed to be Hainan through search results. The capital city of Hainan is Haikou, as verified by multiple sources. Then, the main civilian airport serving Haikou is identified as Haikou Meilan International Airport, which is described as the largest, busiest, and primary international airport in Hainan.
|
| 58 |
+
Exact Answer: Haikou Meilan International Airport</final_summary></longcat_s> /think_on <longcat_assistant><longcat_think>
|