LongCat0830 commited on
Commit
a39cdc2
·
verified ·
1 Parent(s): a682497

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +6 -3
  2. 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
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="378.0400390625" height="100" viewBox="0 0 378.0400390625 100"><g><g><path d="M118,73.72L148.78,73.72L148.78,65.8L127.72,65.8L127.72,31.719997L118,31.719997L118,73.72ZM168.7,74.2C178.96,74.2,186.4,67.3,186.4,57.58C186.4,47.86,178.96,40.96,168.7,40.96C158.44,40.96,150.94,47.86,150.94,57.58C150.94,67.3,158.44,74.2,168.7,74.2ZM168.7,66.52000000000001C164.02,66.52000000000001,160.42000000000002,63.16,160.42000000000002,57.58C160.42000000000002,52,164.02,48.64,168.7,48.64C173.38,48.64,176.92000000000002,52,176.92000000000002,57.58C176.92000000000002,63.16,173.38,66.52000000000001,168.7,66.52000000000001ZM212.26,40.96C207.88,40.96,204.1,42.46,201.57999999999998,45.22L201.57999999999998,41.44L192.64,41.44L192.64,73.72L202,73.72L202,57.760000000000005C202,51.82,205.24,49.06,209.74,49.06C213.88,49.06,216.28,51.46,216.28,56.68L216.28,73.72L225.64,73.72L225.64,55.239999999999995C225.64,45.4,219.88,40.96,212.26,40.96ZM258.88,41.44L258.88,45.58C256.41999999999996,42.46,252.7,40.96,248.2,40.96C239.26,40.96,232.06,47.14,232.06,56.56C232.06,65.97999999999999,239.26,72.16,248.2,72.16C252.4,72.16,255.94,70.84,258.4,68.14L258.4,69.52000000000001C258.4,75.34,255.52,78.34,248.92,78.34C244.78,78.34,240.28,76.9,237.51999999999998,74.68L233.8,81.4C237.57999999999998,84.34,243.51999999999998,85.84,249.64,85.84C261.28,85.84,267.76,80.32,267.76,68.32L267.76,41.44L258.88,41.44ZM250.06,64.47999999999999C245.14,64.47999999999999,241.54000000000002,61.3,241.54000000000002,56.56C241.54000000000002,51.82,245.14,48.64,250.06,48.64C254.98,48.64,258.52,51.82,258.52,56.56C258.52,61.3,254.98,64.47999999999999,250.06,64.47999999999999ZM297.22,74.44C304.53999999999996,74.44,310.6,71.8,314.56,66.94L308.32,61.18C305.5,64.47999999999999,301.96000000000004,66.16,297.76,66.16C289.9,66.16,284.32,60.64,284.32,52.72C284.32,44.8,289.9,39.28,297.76,39.28C301.96000000000004,39.28,305.5,40.96,308.32,44.2L314.56,38.44C310.6,33.64,304.53999999999996,31,297.28,31C284.2,31,274.48,40.06,274.48,52.72C274.48,65.38,284.2,74.44,297.22,74.44ZM333.22,40.96C328.06,40.96,322.84000000000003,42.34,319.3,44.86L322.65999999999997,51.4C325,49.54,328.53999999999996,48.4,331.96000000000004,48.4C337,48.4,339.4,50.739999999999995,339.4,54.760000000000005L331.96000000000004,54.760000000000005C322.12,54.760000000000005,318.1,58.72,318.1,64.42C318.1,70,322.6,74.2,330.15999999999997,74.2C334.9,74.2,338.26,72.64,340,69.7L340,73.72L348.76,73.72L348.76,55.3C348.76,45.519999999999996,343.06,40.96,333.22,40.96ZM332.5,67.9C329.2,67.9,327.22,66.34,327.22,64C327.22,61.84,328.6,60.22,332.98,60.22L339.4,60.22L339.4,63.52C338.32,66.46000000000001,335.62,67.9,332.5,67.9ZM375.52,65.56C374.5,66.34,373.12,66.75999999999999,371.74,66.75999999999999C369.22,66.75999999999999,367.72,65.25999999999999,367.72,62.5L367.72,49.36L375.76,49.36L375.76,42.16L367.72,42.16L367.72,34.3L358.36,34.3L358.36,42.16L353.38,42.16L353.38,49.36L358.36,49.36L358.36,62.620000000000005C358.36,70.3,362.8,74.2,370.41999999999996,74.2C373.3,74.2,376.12,73.53999999999999,378.04,72.16L375.52,65.56Z" fill="#000000" fill-opacity="1"/></g><g><g></g><g><g><path d="M4.626073719635009,82.00004047813415C3.30501571963501,82.00004047813415,2.3468767196350098,80.74194047813415,2.6980235196350097,79.46834047813415L19.56593371963501,18.291870478134154C20.28693371963501,15.676689478134156,23.34693371963501,14.522549478134156,25.61543371963501,16.010112478134154L47.81033371963501,30.564140478134156C49.14033371963501,31.436240478134156,50.86053371963501,31.437640478134156,52.19193371963501,30.567540478134156L74.480933719635,16.002128478134154C76.751533719635,14.518362478134156,79.80913371963501,15.676768478134155,80.52663371963502,18.292540478134157L97.306333719635,79.47094047813415C97.65543371963501,80.74394047813415,96.697533719635,82.00004047813415,95.37753371963501,82.00004047813415L73.95433371963502,82.00004047813415C77.854233719635,77.48454047813416,80.00003371963501,71.71714047813416,80.00003371963501,65.75064047813416L80.00003371963501,65.05434047813415C80.00003371963501,59.218240478134156,77.87703371963501,53.58134047813415,74.027233719635,49.19504047813415L71.27783371963501,35.39474047813415C71.11633371963501,34.58394047813415,70.40463371963502,34.00004047813415,69.57783371963501,34.00004047813415C69.202733719635,34.00004047813415,68.83783371963501,34.121640478134154,68.53773371963501,34.346640478134155L58.17183371963501,42.12114047813415C57.43363371963501,42.674740478134154,56.47883371963501,42.851140478134155,55.59153371963501,42.59754047813416C51.93693371963501,41.553440478134156,48.06303371963501,41.553440478134156,44.408433719635006,42.59754047813416C43.52113371963501,42.851140478134155,42.56633371963501,42.674740478134154,41.82813371963501,42.12114047813415L31.45763371963501,34.343240478134156C31.16063371963501,34.12044047813416,30.79923371963501,34.00004047813415,30.42793371963501,34.00004047813415C29.60043371963501,34.00004047813415,28.89073371963501,34.590440478134155,28.74023371963501,35.404040478134156L26.07283371963501,49.82454047813415C22.18093371963501,53.78214047813415,20.00003371963501,59.110540478134155,20.00003371963501,64.66114047813416L20.00003371963501,65.98024047813416C20.00003371963501,71.80064047813416,22.08213371963501,77.42914047813416,25.86993371963501,81.84834047813416L26.00003371963501,82.00004047813415L4.626073719635009,82.00004047813415Z" fill-rule="evenodd" fill="#29E154" fill-opacity="1"/></g><g><path d="M39.00001645088196,69.99999809265137L45.00001645088196,69.99999809265137L45.00001645088196,55.99999809265137L39.909107450881955,55.99999809265137L39.00001645088196,69.99999809265137Z" fill="#000000" fill-opacity="1"/></g><g transform="matrix(-1,0,0,1,122.00003290176392,0)"><path d="M61.00001645088196,69.99999809265137L67.00001645088196,69.99999809265137L67.00001645088196,55.99999809265137L61.909107450881955,55.99999809265137L61.00001645088196,69.99999809265137Z" fill="#000000" fill-opacity="1"/></g></g></g></g></svg>
 
 
10
  </div>
 
11
  <hr>
12
 
13
  <div align="center" style="line-height: 1;">
@@ -181,11 +184,11 @@ You can chat with LongCat-Flash on our official website: [https://longcat.ai](ht
181
 
182
  ## License Agreement
183
 
184
- The **model weights** are released under the **MIT License**.
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
- See the [LICENSE](LICENSE) file for the full license text.
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;">
 
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