Upload 2 files
Browse files- README.md +7 -4
- modeling_longcat_flash.py +4 -0
README.md
CHANGED
|
@@ -6,8 +6,11 @@ library_name: LongCat-Flash-Chat
|
|
| 6 |
# LongCat-Flash-Chat
|
| 7 |
|
| 8 |
<div align="center">
|
| 9 |
-
<
|
|
|
|
|
|
|
| 10 |
</div>
|
|
|
|
| 11 |
<hr>
|
| 12 |
|
| 13 |
<div align="center" style="line-height: 1;">
|
|
@@ -30,7 +33,7 @@ library_name: LongCat-Flash-Chat
|
|
| 30 |
</div>
|
| 31 |
|
| 32 |
<div align="center" style="line-height: 1;">
|
| 33 |
-
<a href="https://huggingface.co/meituan-longcat/LongCat-Flash-Chat
|
| 34 |
<img alt="License" src="https://img.shields.io/badge/License-MIT-f5de53?&color=f5de53" style="display: inline-block; vertical-align: middle;"/>
|
| 35 |
</a>
|
| 36 |
</div>
|
|
@@ -181,11 +184,11 @@ You can chat with LongCat-Flash on our official website: [https://longcat.ai](ht
|
|
| 181 |
|
| 182 |
## License Agreement
|
| 183 |
|
| 184 |
-
|
| 185 |
|
| 186 |
Any contributions to this repository are licensed under the MIT License, unless otherwise stated. This license does not grant any rights to use Meituan trademarks or patents.
|
| 187 |
|
| 188 |
-
|
| 189 |
|
| 190 |
## Usage Considerations
|
| 191 |
This model has not been specifically designed or comprehensively evaluated for every possible downstream application.
|
|
|
|
| 6 |
# LongCat-Flash-Chat
|
| 7 |
|
| 8 |
<div align="center">
|
| 9 |
+
<img src="https://raw.githubusercontent.com/meituan-longcat/LongCat-Flash-Chat/main/figures/longcat_logo.svg"
|
| 10 |
+
width="300"
|
| 11 |
+
alt="LongCat Logo"/>
|
| 12 |
</div>
|
| 13 |
+
|
| 14 |
<hr>
|
| 15 |
|
| 16 |
<div align="center" style="line-height: 1;">
|
|
|
|
| 33 |
</div>
|
| 34 |
|
| 35 |
<div align="center" style="line-height: 1;">
|
| 36 |
+
<a href="https://huggingface.co/meituan-longcat/LongCat-Flash-Chat/blob/main/LICENSE" style="margin: 2px;">
|
| 37 |
<img alt="License" src="https://img.shields.io/badge/License-MIT-f5de53?&color=f5de53" style="display: inline-block; vertical-align: middle;"/>
|
| 38 |
</a>
|
| 39 |
</div>
|
|
|
|
| 184 |
|
| 185 |
## License Agreement
|
| 186 |
|
| 187 |
+
This repository, including both the model weights and the source code, is released under the **MIT License**.
|
| 188 |
|
| 189 |
Any contributions to this repository are licensed under the MIT License, unless otherwise stated. This license does not grant any rights to use Meituan trademarks or patents.
|
| 190 |
|
| 191 |
+
For details, see the [LICENSE](./LICENSE) file.
|
| 192 |
|
| 193 |
## Usage Considerations
|
| 194 |
This model has not been specifically designed or comprehensively evaluated for every possible downstream application.
|
modeling_longcat_flash.py
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from typing import Callable, Optional, Union
|
| 2 |
|
| 3 |
import torch
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
# Copyright (c) 2025 Meituan
|
| 3 |
+
# This code is licensed under the MIT License, for details, see the ./LICENSE file.
|
| 4 |
+
|
| 5 |
from typing import Callable, Optional, Union
|
| 6 |
|
| 7 |
import torch
|