scarxity commited on
Commit
279f07f
·
verified ·
1 Parent(s): 917df98

NF4 (bitsandbytes 4-bit) build of Fish Speech S2-Pro

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ overview.png filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
LICENSE.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FISH AUDIO RESEARCH LICENSE AGREEMENT
2
+
3
+ **Last Updated: March 7, 2026**
4
+
5
+ ## I. INTRODUCTION
6
+
7
+ This Agreement applies to any individual person or entity ("You", "Your" or "Licensee") that uses or distributes any portion or element of the Fish Audio Materials or Derivative Works thereof for any Research, Non-Commercial, or Commercial purpose. Capitalized terms not otherwise defined herein are defined in Section V below.
8
+
9
+ This Agreement is intended to allow research and non-commercial uses of the Materials free of charge. Any Commercial use of the Materials requires a separate license from Fish Audio.
10
+
11
+ By clicking "I Accept" or by using, distributing, or accessing any portion or element of the Fish Audio Materials or Derivative Works, You agree that You have read, understood and are bound by the terms of this Agreement. If You are acting on behalf of a company, organization or other entity, then "You" includes you and that entity, and You agree that You: (i) are an authorized representative of such entity with the authority to bind such entity to this Agreement, and (ii) You agree to the terms of this Agreement on that entity's behalf.
12
+
13
+ ## II. RESEARCH & NON-COMMERCIAL USE LICENSE
14
+
15
+ Subject to the terms of this Agreement, Fish Audio grants You a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable and royalty-free limited license under Fish Audio's intellectual property or other rights owned by Fish Audio embodied in the Fish Audio Materials to use, reproduce, distribute, and create Derivative Works of, and make modifications to, the Fish Audio Materials for any Research or Non-Commercial Purpose.
16
+
17
+ "Research Purpose" means academic or scientific advancement, and in each case, is not primarily intended for commercial advantage or monetary compensation to You or others.
18
+
19
+ "Non-Commercial Purpose" means any purpose other than a Research Purpose that is not primarily intended for commercial advantage or monetary compensation to You or others, such as personal use (i.e., hobbyist) or evaluation and testing.
20
+
21
+ ## III. COMMERCIAL USE
22
+
23
+ **Any use of the Fish Audio Materials or Derivative Works for a Commercial Purpose requires a separate written license agreement from Fish Audio.** No commercial rights are granted under this Agreement.
24
+
25
+ "Commercial Purpose" means any purpose other than a Research Purpose or Non-Commercial Purpose that is primarily intended for or directed toward commercial advantage or monetary compensation to You or others, including but not limited to: (i) creating, modifying, or distributing Your product or service, including via a hosted service or application programming interface, (ii) Your business's or organization's internal operations, and (iii) any use in connection with a product or service for which You charge a fee or generate revenue, whether directly or indirectly.
26
+
27
+ To obtain a commercial license, please contact Fish Audio at:
28
+
29
+ - **Website:** [https://fish.audio](https://fish.audio)
30
+ - **Email:** business@fish.audio
31
+
32
+ ## IV. GENERAL TERMS
33
+
34
+ Your Research and Non-Commercial License under this Agreement is subject to the following terms.
35
+
36
+ ### a. Distribution & Attribution
37
+
38
+ If You distribute or make available the Fish Audio Materials or a Derivative Work to a third party, or a product or service that uses any portion of them, You shall: (i) provide a copy of this Agreement to that third party, (ii) retain the following attribution notice within a "Notice" text file distributed as a part of such copies: "This model is licensed under the Fish Audio Research License, Copyright © 39 AI, INC. All Rights Reserved.", and (iii) prominently display "Built with Fish Audio" on a related website, user interface, blogpost, about page, or product documentation.
39
+
40
+ If You create a Derivative Work, You may add your own attribution notice(s) to the "Notice" text file included with that Derivative Work, provided that You clearly indicate which attributions apply to the Fish Audio Materials and state in the "Notice" text file that You changed the Fish Audio Materials and how it was modified.
41
+
42
+ ### b. Use Restrictions
43
+
44
+ Your use of the Fish Audio Materials and Derivative Works, including any output or results of the Fish Audio Materials or Derivative Works, must comply with applicable laws and regulations (including Trade Control Laws and equivalent regulations) and adhere to Fish Audio's Acceptable Use Policy, which is hereby incorporated by reference.
45
+
46
+ Furthermore, You will not use the Fish Audio Materials or Derivative Works, or any output or results of the Fish Audio Materials or Derivative Works, to create or improve any foundational generative AI model (excluding the Models or Derivative Works).
47
+
48
+ ### c. Intellectual Property
49
+
50
+ **(i) Trademark License.** No trademark licenses are granted under this Agreement, and in connection with the Fish Audio Materials or Derivative Works, You may not use any name or mark owned by or associated with Fish Audio or any of its Affiliates, except as required under Section IV(a) herein.
51
+
52
+ **(ii) Ownership of Derivative Works.** As between You and Fish Audio, You are the owner of Derivative Works You create, subject to Fish Audio's ownership of the Fish Audio Materials and any Derivative Works made by or for Fish Audio.
53
+
54
+ **(iii) Ownership of Outputs.** As between You and Fish Audio, You own any outputs generated from the Models or Derivative Works to the extent permitted by applicable law.
55
+
56
+ **(iv) Disputes.** If You or Your Affiliate(s) institute litigation or other proceedings against Fish Audio (including a cross-claim or counterclaim in a lawsuit) alleging that the Fish Audio Materials, Derivative Works or associated outputs or results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other rights owned or licensable by You, then any licenses granted to You under this Agreement shall terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold harmless Fish Audio from and against any claim by any third party arising out of or related to Your use or distribution of the Fish Audio Materials or Derivative Works in violation of this Agreement.
57
+
58
+ **(v) Feedback.** From time to time, You may provide Fish Audio with verbal and/or written suggestions, comments or other feedback related to Fish Audio's existing or prospective technology, products or services (collectively, "Feedback"). You are not obligated to provide Fish Audio with Feedback, but to the extent that You do, You hereby grant Fish Audio a perpetual, irrevocable, royalty-free, fully-paid, sub-licensable, transferable, non-exclusive, worldwide right and license to exploit the Feedback in any manner without restriction. Your Feedback is provided "AS IS" and You make no warranties whatsoever about any Feedback.
59
+
60
+ ### d. Disclaimer of Warranty
61
+
62
+ UNLESS REQUIRED BY APPLICABLE LAW, THE FISH AUDIO MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OR LAWFULNESS OF USING OR REDISTRIBUTING THE FISH AUDIO MATERIALS, DERIVATIVE WORKS OR ANY OUTPUT OR RESULTS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE FISH AUDIO MATERIALS, DERIVATIVE WORKS AND ANY OUTPUT AND RESULTS.
63
+
64
+ ### e. Limitation of Liability
65
+
66
+ IN NO EVENT WILL FISH AUDIO OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF FISH AUDIO OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
67
+
68
+ ### f. Term and Termination
69
+
70
+ The term of this Agreement will commence upon Your acceptance of this Agreement or access to the Fish Audio Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein. Fish Audio may terminate this Agreement if You are in breach of any term or condition of this Agreement. Upon termination of this Agreement, You shall delete and cease use of any Fish Audio Materials or Derivative Works. Sections IV(d), (e), and (g) shall survive the termination of this Agreement.
71
+
72
+ ### g. Governing Law
73
+
74
+ This Agreement will be governed by and construed in accordance with the laws of the United States and the State of California without regard to choice of law principles, and the UN Convention on Contracts for International Sale of Goods does not apply to this Agreement.
75
+
76
+ ## V. DEFINITIONS
77
+
78
+ **"Affiliate(s)"** means any entity that directly or indirectly controls, is controlled by, or is under common control with the subject entity; for purposes of this definition, "control" means direct or indirect ownership or control of more than 50% of the voting interests of the subject entity.
79
+
80
+ **"Agreement"** means this Fish Audio Research License Agreement.
81
+
82
+ **"Derivative Work(s)"** means (a) any derivative work of the Fish Audio Materials as recognized by U.S. copyright laws and (b) any modifications to a Model, and any other model created which is based on or derived from the Model or the Model's output, including "fine tune" and "low-rank adaptation" models derived from a Model or a Model's output, but do not include the output of any Model.
83
+
84
+ **"Documentation"** means any specifications, manuals, documentation, and other written information provided by Fish Audio related to the Software or Models.
85
+
86
+ **"Fish Audio"** or **"we"** means 39 AI, INC. and its Affiliates.
87
+
88
+ **"Model(s)"** means, collectively, Fish Audio's proprietary models and algorithms, including machine-learning models, trained model weights and other elements of the foregoing.
89
+
90
+ **"Software"** means Fish Audio's proprietary software made available under this Agreement now or in the future.
91
+
92
+ **"Fish Audio Materials"** means, collectively, Fish Audio's proprietary Models, Software and Documentation (and any portion or combination thereof) made available under this Agreement.
93
+
94
+ **"Trade Control Laws"** means any applicable U.S. and non-U.S. export control and trade sanctions laws and regulations.
README.md ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: fish-audio-research-license
4
+ license_link: https://huggingface.co/fishaudio/s2-pro/blob/main/LICENSE
5
+ base_model: fishaudio/s2-pro
6
+ pipeline_tag: text-to-speech
7
+ library_name: transformers
8
+ tags:
9
+ - text-to-speech
10
+ - tts
11
+ - voice-cloning
12
+ - bitsandbytes
13
+ - nf4
14
+ - 4-bit
15
+ - quantized
16
+ language:
17
+ - en
18
+ - zh
19
+ - ja
20
+ - ko
21
+ - id
22
+ - de
23
+ - fr
24
+ - ar
25
+ ---
26
+
27
+ # Fish Speech S2-Pro — NF4 (bitsandbytes 4-bit)
28
+
29
+ A **bitsandbytes NF4 4-bit** quantization of [`fishaudio/s2-pro`](https://huggingface.co/fishaudio/s2-pro),
30
+ the 4B-parameter flagship Fish Audio S2 text-to-speech model.
31
+
32
+ Roughly **4.9 GB** on disk against 8.5 GB of bf16 safetensors, and it loads
33
+ directly as 4-bit — no quantization step at startup.
34
+
35
+ Everything the base model does is preserved: voice cloning from a short
36
+ reference clip, ~50 languages, and inline expressiveness tags such as
37
+ `[laugh]`, `[whispers]`, `[sighs]`.
38
+
39
+ ## Intended use
40
+
41
+ This checkpoint is built for
42
+ [scarxity/fish-speech-int4-patch](https://github.com/scarxity/fish-speech-int4-patch),
43
+ a fork whose `server-4gb` / `webui-4gb` Docker profiles run S2-Pro on a **4 GB**
44
+ laptop GPU (measured 3294 MiB peak on a simulated 4096 MiB budget, faster than
45
+ realtime on an RTX 4060 Ti).
46
+
47
+ > **The 4 GB figure comes from the fork's serving code, not from these weights
48
+ > alone.** The quantization is what fits ~4.9 GB on disk; getting into 4 GB of
49
+ > VRAM additionally needs the fork's decode-only codec, host-resident embedding
50
+ > table, sliced `lm_head`, and chunked codec decode. Stock upstream code with
51
+ > this checkpoint will need more VRAM than that.
52
+
53
+ ```bash
54
+ git clone https://github.com/scarxity/fish-speech-int4-patch
55
+ cd fish-speech-int4-patch
56
+
57
+ huggingface-cli download scarxity/fish-speech-s2-pro-nf4 --local-dir checkpoints/s2-pro-nf4
58
+
59
+ docker compose --profile server-4gb build
60
+ docker compose --profile server-4gb up -d
61
+ ```
62
+
63
+ Then POST to `http://localhost:8880/v1/tts`:
64
+
65
+ ```json
66
+ { "text": "Hello, world.", "reference_id": "my-voice" }
67
+ ```
68
+
69
+ An OpenAI-compatible `/v1/audio/speech` endpoint and a Gradio WebUI (port 7860)
70
+ are included. See the fork's
71
+ [4 GB guide](https://github.com/scarxity/fish-speech-int4-patch/blob/main/docs/en/4gb-laptop.md)
72
+ for reference-voice setup and long-text handling.
73
+
74
+ ## Requirements
75
+
76
+ - NVIDIA GPU (bitsandbytes NF4 is CUDA-only)
77
+ - `bitsandbytes >= 0.43`
78
+ - Loading flags `--bnb4 --half`
79
+
80
+ This is **NF4**, not GPTQ, AWQ, or int4 — those formats are not interchangeable,
81
+ and loaders for them will not read this checkpoint.
82
+
83
+ ## Quantization details
84
+
85
+ | | |
86
+ |---|---|
87
+ | Scheme | bitsandbytes NF4 (normal-float 4-bit) |
88
+ | Double quantization | enabled (`compress_statistics=True`) |
89
+ | Compute dtype | fp16 |
90
+ | Quantized | the 36-layer slow backbone and the 4-layer depth transformer |
91
+ | Effective | ~4.13 bits/weight |
92
+
93
+ ## Architecture
94
+
95
+ S2-Pro is a Dual-AR model over an RVQ audio codec (10 codebooks, 21.53 Hz):
96
+
97
+ - **Slow AR** (36 layers, dim 2560) predicts the semantic codebook along time —
98
+ words, pronunciation, language, and the inline emotion tags.
99
+ - **Fast AR** (4 layers, dim 2560) runs nine times per frame for the residual
100
+ codebooks — timbre and fine acoustic texture.
101
+ - **Codec** upsamples the codes ×2048 to a 44.1 kHz waveform.
102
+
103
+ ## Notes
104
+
105
+ - `tokenizer_config.json` in this repo declares `PreTrainedTokenizerFast`.
106
+ Some S2-Pro copies ship `TokenizersBackend`, a transformers v5 name that
107
+ older loaders reject with `UnboundLocalError: tokenizer`.
108
+ - Voice cloning is **in-context**: the reference clip's codes are prepended to
109
+ every request rather than fine-tuned in. Keep reference clips near 10 seconds
110
+ — a 31.7 s clip costs 683 prompt tokens on every request against 220 for a
111
+ 10.2 s one.
112
+
113
+ ## License
114
+
115
+ Released under the **Fish Audio Research License**, inherited from the base
116
+ model. Review it before any commercial or redistributive use.
117
+
118
+ ## Credits
119
+
120
+ - [Fish Audio](https://fish.audio/) — the S2 model, all core research and architecture
121
+ - [groxaxo/fish-speech-int4-patch](https://github.com/groxaxo/fish-speech-int4-patch) — the original NF4 quantization path
122
+ - [Technical report](https://arxiv.org/abs/2603.08823)
chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for message in messages[::-1] %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- if ns.multi_step_tool and message.role == "user" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
21
+ {%- set ns.multi_step_tool = false %}
22
+ {%- set ns.last_query_index = index %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+ {%- for message in messages %}
26
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
27
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
28
+ {%- elif message.role == "assistant" %}
29
+ {%- set content = message.content %}
30
+ {%- set reasoning_content = '' %}
31
+ {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
32
+ {%- set reasoning_content = message.reasoning_content %}
33
+ {%- else %}
34
+ {%- if '</think>' in message.content %}
35
+ {%- set content = message.content.split('</think>')[-1].lstrip('\n') %}
36
+ {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
37
+ {%- endif %}
38
+ {%- endif %}
39
+ {%- if loop.index0 > ns.last_query_index %}
40
+ {%- if loop.last or (not loop.last and reasoning_content) %}
41
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
42
+ {%- else %}
43
+ {{- '<|im_start|>' + message.role + '\n' + content }}
44
+ {%- endif %}
45
+ {%- else %}
46
+ {{- '<|im_start|>' + message.role + '\n' + content }}
47
+ {%- endif %}
48
+ {%- if message.tool_calls %}
49
+ {%- for tool_call in message.tool_calls %}
50
+ {%- if (loop.first and content) or (not loop.first) %}
51
+ {{- '\n' }}
52
+ {%- endif %}
53
+ {%- if tool_call.function %}
54
+ {%- set tool_call = tool_call.function %}
55
+ {%- endif %}
56
+ {{- '<tool_call>\n{"name": "' }}
57
+ {{- tool_call.name }}
58
+ {{- '", "arguments": ' }}
59
+ {%- if tool_call.arguments is string %}
60
+ {{- tool_call.arguments }}
61
+ {%- else %}
62
+ {{- tool_call.arguments | tojson }}
63
+ {%- endif %}
64
+ {{- '}\n</tool_call>' }}
65
+ {%- endfor %}
66
+ {%- endif %}
67
+ {{- '<|im_end|>\n' }}
68
+ {%- elif message.role == "tool" %}
69
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
70
+ {{- '<|im_start|>user' }}
71
+ {%- endif %}
72
+ {{- '\n<tool_response>\n' }}
73
+ {{- message.content }}
74
+ {{- '\n</tool_response>' }}
75
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
76
+ {{- '<|im_end|>\n' }}
77
+ {%- endif %}
78
+ {%- endif %}
79
+ {%- endfor %}
80
+ {%- if add_generation_prompt %}
81
+ {{- '<|im_start|>assistant\n' }}
82
+ {%- if enable_thinking is defined and enable_thinking is false %}
83
+ {{- '<think>\n\n</think>\n\n' }}
84
+ {%- endif %}
85
+ {%- endif %}
codec.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74fc41c5a7151c6f350af8bd7e5d6e3accfcc7f3dfbfac23afd35af07052bb2f
3
+ size 1871099728
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attention_o_bias": false,
3
+ "attention_qk_norm": true,
4
+ "attention_qkv_bias": false,
5
+ "audio_embed_dim": 2560,
6
+ "codebook_size": 4096,
7
+ "dim": 2560,
8
+ "dropout": 0.0,
9
+ "fast_attention_o_bias": false,
10
+ "fast_attention_qk_norm": false,
11
+ "fast_attention_qkv_bias": false,
12
+ "fast_dim": 2560,
13
+ "fast_head_dim": 128,
14
+ "fast_intermediate_size": 9728,
15
+ "fast_n_head": 32,
16
+ "fast_n_local_heads": 8,
17
+ "head_dim": 128,
18
+ "initializer_range": 0.01976423537605237,
19
+ "intermediate_size": 9728,
20
+ "is_reward_model": false,
21
+ "max_seq_len": 32768,
22
+ "model_type": "dual_ar",
23
+ "n_fast_layer": 4,
24
+ "n_head": 32,
25
+ "n_layer": 36,
26
+ "n_local_heads": 8,
27
+ "norm_eps": 1e-06,
28
+ "norm_fastlayer_input": true,
29
+ "num_codebooks": 10,
30
+ "rope_base": 1000000,
31
+ "scale_codebook_embeddings": true,
32
+ "semantic_begin_id": 151678,
33
+ "semantic_end_id": 155773,
34
+ "tie_word_embeddings": true,
35
+ "use_gradient_checkpointing": true,
36
+ "vocab_size": 155776
37
+ }
model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08b409f40c653cf2af5b5b08a797c67ba706d22b586c831c14e5ac156b1960ae
3
+ size 3117301458
overview.png ADDED

Git LFS Details

  • SHA256: f77da18e7d3cf59182fb714fc6c1bc526e7877b538e6380d8f002e84e8c56ea9
  • Pointer size: 132 Bytes
  • Size of remote file: 3.54 MB
special_tokens_map.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f24e08099d45a8adf3f52f5f0b03276e433bb9d689bb15fcbcc48ce58744588b
3
+ size 12217872
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "is_local": true,
9
+ "model_max_length": 131072,
10
+ "pad_token": "<|endoftext|>",
11
+ "split_special_tokens": false,
12
+ "tokenizer_class": "PreTrainedTokenizerFast",
13
+ "unk_token": null
14
+ }