diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..1e8b68557612ba3b15d9644c6c5da50ea4760383 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text +8bit/model.safetensors.index.json filter=lfs diff=lfs merge=lfs -text +8bit/tokenizer.json filter=lfs diff=lfs merge=lfs -text diff --git a/8bit/.COMPLETE b/8bit/.COMPLETE new file mode 100644 index 0000000000000000000000000000000000000000..8976cc692faa891b5290172a1e10d9c487269c8f --- /dev/null +++ b/8bit/.COMPLETE @@ -0,0 +1 @@ +{"format": "MLX", "source": "/shared/AbliterixedModels/GLM-5.3-Flash-Uncensored-FP8", "method": "model-free affine RTN using mlx.core.quantize", "scale_dtype": "float16", "bias_dtype": "float16", "group_size": 128, "bits": 8, "mode": "affine", "quantized_tensor_count": 37860, "dense_tensor_count": 910, "elapsed_seconds": 294.8754210472107} diff --git a/8bit/.eval_results/GLM-5.3-Flash.yaml b/8bit/.eval_results/GLM-5.3-Flash.yaml new file mode 100644 index 0000000000000000000000000000000000000000..90456a8eb9c674a89d63a8952d1bd2ebc95f8ce1 --- /dev/null +++ b/8bit/.eval_results/GLM-5.3-Flash.yaml @@ -0,0 +1,28 @@ +- dataset: + id: harborframework/terminal-bench-2.1 + task_id: terminalbench_2_1 + value: 84.3 + date: "2026-08-26" + source: + url: https://huggingface.co/zai-org/GLM-5.3-Flash + name: "GLM-5.3-Flash model card" + +- dataset: + id: datacurve/deep-swe + task_id: deep_swe + value: 63.4 + date: "2026-08-26" + source: + url: https://huggingface.co/zai-org/GLM-5.3-Flash + name: "GLM-5.3-Flash model card" + notes: "Reported as DeepSWE v1.1 on the model card, run via the mini-swe-agent harness with 400K context." + +- dataset: + id: cais/hle + task_id: hle + value: 55.3 + date: "2026-08-26" + source: + url: https://huggingface.co/zai-org/GLM-5.3-Flash + name: "GLM-5.3-Flash model card" + notes: "HLE with tools (full set) and a 300K-context management strategy, not the no-tools default; judged by GPT-5.6-luna (medium)." diff --git a/8bit/.gitattributes b/8bit/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..c0eb309b2cd0b9bbc64978444812401eb3e4b825 --- /dev/null +++ b/8bit/.gitattributes @@ -0,0 +1,49 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bin.* filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zstandard filter=lfs diff=lfs merge=lfs -text +*.tfevents* filter=lfs diff=lfs merge=lfs -text +*.db* filter=lfs diff=lfs merge=lfs -text +*.ark* filter=lfs diff=lfs merge=lfs -text +**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text +**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text +**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.gguf* filter=lfs diff=lfs merge=lfs -text +*.ggml filter=lfs diff=lfs merge=lfs -text +*.llamafile* filter=lfs diff=lfs merge=lfs -text +*.pt2 filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +"/model.safetensors.index.json" filter=lfs diff=lfs merge=lfs -text +"/tokenizer.json" filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/8bit/LICENSE b/8bit/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..986b06fb2916b3518b82c7dcc0870723b91f2f92 --- /dev/null +++ b/8bit/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Z.AI Co., Ltd + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/8bit/README.md b/8bit/README.md new file mode 100644 index 0000000000000000000000000000000000000000..46bc9e21fef7b4371a73cf663dbd1e54505c1205 --- /dev/null +++ b/8bit/README.md @@ -0,0 +1,74 @@ +--- +language: +- en +- zh +library_name: transformers +license: mit +pipeline_tag: image-text-to-text +--- + +# GLM-5.3-Flash + +
+ +
+

+ πŸ‘‹ Join our WeChat or Discord community. +
+ πŸ“– Check out the GLM-5.3-Flash blog and GLM-5 Technical report. +
+ πŸ“ Use GLM-5.3-Flash API services on Z.ai API Platform. +

+ +## Introduction + +We introduce GLM-5.3-Flash, the first natively multimodal model in the GLM-5 series. With 320B total parameters and just 18B active parameters, it outperforms GLM-5.2 across benchmarks and real-world workloads at one-tenth the price, while approaching Claude Opus 4.8 on coding and agentic benchmarks. + +GLM-5.3-Flash starts from a newly trained base model, with its architecture and training recipe redesigned around capability and efficiency. For the first time in the GLM series, we introduce a hybrid architecture combining sparse and linear attention, sharply reducing long-context serving costs while preserving precise long-context capabilities. The model also adopts Manifold-Constrained Hyper-Connections (mHC) to further improve scaling efficiency. Together with our latest 30T-token multimodal pre-training corpus, these changes enable GLM-5.3-Flash to deliver more intelligence with less compute. + +![bench_53](https://raw.githubusercontent.com/zai-org/GLM-5/refs/heads/main/resources/bench_53.png) + + +## Serve GLM-5.3-Flash Locally + +GLM-5.3-Flash supports deployment with the following frameworks. Feel free to try them out: + +- [SGLang](https://github.com/sgl-project/sglang) β€” see [cookbook](https://cookbook.sglang.io/autoregressive/GLM/GLM-5.3-Flash) +- [vLLM](https://github.com/vllm-project/vllm) β€” see [recipes](https://recipes.vllm.ai/zai-org/GLM-5.3-Flash) +- [TokenSpeed](https://github.com/lightseekorg/tokenspeed) β€” see [here](https://lightseek.org/tokenspeed/recipes/models#glm-5-3-flash) +- [Transformers](https://github.com/huggingface/transformers) β€” see [transformers docs](https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/glm5_next.md) +- [KTransformers](https://github.com/kvcache-ai/ktransformers) β€” see [tutorial](https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/kt-kernel/GLM-5.3-Flash-Tutorial.md) +- [Unsloth](https://github.com/unslothai/unsloth) β€” see [guide](https://unsloth.ai/docs/models/glm-5.3) + +### Note + +- GLM-5.3-Flash supports controlling the thinking budget through the `reasoning_effort` parameter, which accepts three levels: `low`, `high`, and `max`. It defaults to `max` if not passed (or if set to any other value). To use `low` or `high`, pass them explicitly. For benchmark and leaderboard reproduction, keep the default `max`. +- In the chat template for GLM-5.3-Flash, `clear_thinking` defaults to `false` if not passed. For chat scenarios, explicitly pass `clear_thinking=true`. + +## Footnotes + +* **HLE w/ tools (full set)**: We use sampling parameters of `temperature=1.0` and `top_p=0.95` for evaluation, with a maximum generation length of `163,840` tokens. The evaluation is conducted with a maximum context length of `300,000` tokens, using a context management strategy. We use GPT-5.6-luna (medium) as the judge model. +* **NL2Repo**: We evaluated NL2Repo with temperature=1.0, top_p=1.0, and max_new_tokens=64k under 1M context. To prevent hacking, we use rule-based and a LLM-based judgement to prevent malicious behaviors (e.g., unauthorized pip or curl operations). +* **DeepSWE**: We run DeepSWE using the mini-swe-agent harness with `temperature=0.95`, `top_p=1.0`, `timeout=6h` and 400K context. +* **Terminal-Bench 2.1**: We evaluate in Claude Code 2.1.207 with temperature=1.0, top_p=1, max_new_tokens=65536 with 6h timeout. +* **Agent’s Last Exam**: +* **Toolathlon Verified**: We obtain all results via the official evaluation service and report pass@1 averaged over 3 independent runs. +* **AutomationBench**: We evaluate on AutomationBench **v1.0.6**, incorporating the fix for the `null`-type handling issue introduced in [PR #13](https://github.com/zapier/AutomationBench/pull/13). +* **GDPval-AA v2**: Models are evaluated by Artificial Analysis. +* **BabyVision**: We use temperature=1.0, top_p=0.95, and a maximum context length of 164K tokens. We resize the input images such that their shorter side is at least 1.5K pixels, consistent with other baselines. + +## Citation + +If you find GLM-5.3-Flash useful in your research, please cite our technical report: + +```bibtex +@misc{glm5team2026glm5vibecodingagentic, + title={GLM-5: from Vibe Coding to Agentic Engineering}, + author={GLM-5-Team and : and Aohan Zeng and Xin Lv and Zhenyu Hou and Zhengxiao Du and Qinkai Zheng and Bin Chen and Da Yin and Chendi Ge and Chenghua Huang and Chengxing Xie and Chenzheng Zhu and Congfeng Yin and Cunxiang Wang and Gengzheng Pan and Hao Zeng and Haoke Zhang and Haoran Wang and Huilong Chen and Jiajie Zhang and Jian Jiao and Jiaqi Guo and Jingsen Wang and Jingzhao Du and Jinzhu Wu and Kedong Wang and Lei Li and Lin Fan and Lucen Zhong and Mingdao Liu and Mingming Zhao and Pengfan Du and Qian Dong and Rui Lu and Shuang-Li and Shulin Cao and Song Liu and Ting Jiang and Xiaodong Chen and Xiaohan Zhang and Xuancheng Huang and Xuezhen Dong and Yabo Xu and Yao Wei and Yifan An and Yilin Niu and Yitong Zhu and Yuanhao Wen and Yukuo Cen and Yushi Bai and Zhongpei Qiao and Zihan Wang and Zikang Wang and Zilin Zhu and Ziqiang Liu and Zixuan Li and Bojie Wang and Bosi Wen and Can Huang and Changpeng Cai and Chao Yu and Chen Li and Chengwei Hu and Chenhui Zhang and Dan Zhang and Daoyan Lin and Dayong Yang and Di Wang and Ding Ai and Erle Zhu and Fangzhou Yi and Feiyu Chen and Guohong Wen and Hailong Sun and Haisha Zhao and Haiyi Hu and Hanchen Zhang and Hanrui Liu and Hanyu Zhang and Hao Peng and Hao Tai and Haobo Zhang and He Liu and Hongwei Wang and Hongxi Yan and Hongyu Ge and Huan Liu and Huanpeng Chu and Jia'ni Zhao and Jiachen Wang and Jiajing Zhao and Jiamin Ren and Jiapeng Wang and Jiaxin Zhang and Jiayi Gui and Jiayue Zhao and Jijie Li and Jing An and Jing Li and Jingwei Yuan and Jinhua Du and Jinxin Liu and Junkai Zhi and Junwen Duan and Kaiyue Zhou and Kangjian Wei and Ke Wang and Keyun Luo and Laiqiang Zhang and Leigang Sha and Liang Xu and Lindong Wu and Lintao Ding and Lu Chen and Minghao Li and Nianyi Lin and Pan Ta and Qiang Zou and Rongjun Song and Ruiqi Yang and Shangqing Tu and Shangtong Yang and Shaoxiang Wu and Shengyan Zhang and Shijie Li and Shuang Li and Shuyi Fan and Wei Qin and Wei Tian and Weining Zhang and Wenbo Yu and Wenjie Liang and Xiang Kuang and Xiangmeng Cheng and Xiangyang Li and Xiaoquan Yan and Xiaowei Hu and Xiaoying Ling and Xing Fan and Xingye Xia and Xinyuan Zhang and Xinze Zhang and Xirui Pan and Xu Zou and Xunkai Zhang and Yadi Liu and Yandong Wu and Yanfu Li and Yidong Wang and Yifan Zhu and Yijun Tan and Yilin Zhou and Yiming Pan and Ying Zhang and Yinpei Su and Yipeng Geng and Yong Yan and Yonglin Tan and Yuean Bi and Yuhan Shen and Yuhao Yang and Yujiang Li and Yunan Liu and Yunqing Wang and Yuntao Li and Yurong Wu and Yutao Zhang and Yuxi Duan and Yuxuan Zhang and Zezhen Liu and Zhengtao Jiang and Zhenhe Yan and Zheyu Zhang and Zhixiang Wei and Zhuo Chen and Zhuoer Feng and Zijun Yao and Ziwei Chai and Ziyuan Wang and Zuzhou Zhang and Bin Xu and Minlie Huang and Hongning Wang and Juanzi Li and Yuxiao Dong and Jie Tang}, + year={2026}, + eprint={2602.15763}, + archivePrefix={arXiv}, + primaryClass={cs.LG}, + url={https://arxiv.org/abs/2602.15763}, +} +``` \ No newline at end of file diff --git a/8bit/chat_template.jinja b/8bit/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..06bd89e94b96652fd5d76d9f9e11cfa15e09f49d --- /dev/null +++ b/8bit/chat_template.jinja @@ -0,0 +1,261 @@ +[gMASK] +{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%} +{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%} +{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%} +{%- if tools -%} +{%- macro tool_to_json(tool) -%} + {%- set ns_tool = namespace(first=true) -%} + {{ '{' -}} + {%- for k, v in tool.items() -%} + {%- if k != 'defer_loading' and k != 'strict' -%} + {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%} + {%- set ns_tool.first = false -%} + "{{ k }}": {{ v | tojson(ensure_ascii=False) }} + {%- endif -%} + {%- endfor -%} + {{- '}' -}} +{%- endmacro -%} +{%- macro tool_references_to_response(refs) -%} + {{- '\n' -}} + {%- for tr in refs -%} + {%- for tool in tools -%} + {%- if 'function' in tool -%} + {%- set tool = tool['function'] -%} + {%- endif -%} + {%- if tool.name == tr.name -%} + {{- tool_to_json(tool) + '\n' -}} + {%- endif -%} + {%- endfor -%} + {%- endfor -%} + {{- '' -}} +{%- endmacro -%} +<|system|> +# Tools + +You may call one or more functions to assist with the user query. + +You are provided with function signatures within XML tags: + +{% for tool in tools %} +{%- if 'function' in tool -%} + {%- set tool = tool['function'] -%} +{%- endif -%} +{% if tool.defer_loading is not defined or not tool.defer_loading %} +{{ tool_to_json(tool) }} +{% endif %} +{% endfor %} + + +For each function call, output the function name and arguments within the following XML format: +{function-name}{arg-key-1}{arg-value-1}{arg-key-2}{arg-value-2}...{%- endif -%} +{%- macro emit_image() -%}<|begin_of_image|><|image|><|end_of_image|>{%- endmacro -%} +{%- macro emit_video() -%}<|begin_of_video|><|video|><|end_of_video|>{%- endmacro -%} +{%- macro emit_audio() -%}<|begin_of_audio|><|end_of_audio|>{%- endmacro -%} +{%- macro visible_text(content) -%} + {%- if content is string -%} + {{- content -}} + {%- elif content is iterable and content is not mapping -%} + {%- for item in content -%} + {%- if item is mapping and item.type == 'text' -%} + {{- item.text -}} + {%- elif item is string -%} + {{- item -}} + {%- elif item is mapping and item.type in ['image', 'image_url'] -%} + {{- emit_image() -}} + {%- elif item is mapping and item.type in ['video', 'video_url'] -%} + {{- emit_video() -}} + {%- elif item is mapping and item.type in ['audio', 'audio_url', 'input_audio'] -%} + {{- emit_audio() -}} + {%- endif -%} + {%- endfor -%} + {%- elif content is not none -%} + {{- content -}} + {%- endif -%} +{%- endmacro -%} +{%- macro tool_response(text) -%} +{{- '' + text + '' -}} +{%- endmacro -%} +{%- macro render_tool_response(m) -%} +{%- if m.content is string -%} + {{- tool_response(m.content) -}} +{%- elif m.content and m.content is not mapping and m.content.0.type == "tool_reference" -%} + {{- tool_references_to_response(m.content) -}} +{%- elif is_list_of_outputs(m) -%} + {%- for tr in m.content -%} + {%- if tr.output is iterable and tr.output is not string and tr.output is not mapping and tr.output and tr.output.0.type == "tool_reference" -%} + {{- tool_references_to_response(tr.output) -}} + {%- else -%} + {{- tool_response(visible_text(tr.output)) -}} + {%- endif -%} + {%- endfor -%} +{%- else -%} + {{- tool_response(visible_text(m.content)) -}} +{%- endif -%} +{%- endmacro -%} +{%- macro id_of(obj) -%} + {%- if obj.tool_call_id -%} + {{- obj.tool_call_id -}} + {%- elif obj.id -%} + {{- obj.id -}} + {%- endif -%} +{%- endmacro -%} +{%- macro is_list_of_outputs(m) -%} + {%- if m.content and m.content.0.output is defined -%}1{%- endif -%} +{%- endmacro -%} +{%- macro has_dup_tool_result_id(lo, hi, target) -%} + {%- set ns_cnt = namespace(n=0) -%} + {%- for k in range(lo, hi + 1) -%} + {%- set m = messages[k] -%} + {%- if is_list_of_outputs(m) -%} + {%- for entry in m.content -%} + {%- if id_of(entry) == target -%} + {%- set ns_cnt.n = ns_cnt.n + 1 -%} + {%- endif -%} + {%- endfor -%} + {%- elif id_of(m) == target -%} + {%- set ns_cnt.n = ns_cnt.n + 1 -%} + {%- endif -%} + {%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%} + {%- endfor -%} + {%- if ns_cnt.n > 1 -%}1{%- endif -%} +{%- endmacro -%} +{%- macro tc_id_exists(tcs, target) -%} + {%- set ns_f = namespace(found=false) -%} + {%- for tc in tcs -%} + {%- if id_of(tc) == target -%} + {%- set ns_f.found = true -%} + {%- break -%} + {%- endif -%} + {%- endfor -%} + {%- if ns_f.found -%}1{%- endif -%} +{%- endmacro -%} +{%- set ns = namespace(last_user_index=-1) -%} +{%- for m in messages %} + {%- if m.role == 'user' %} + {%- set ns.last_user_index = loop.index0 -%} + {%- endif %} +{%- endfor %} +{%- for m in messages -%} +{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }} +{%- elif m.role == 'assistant' -%} +<|assistant|> +{%- set content = visible_text(m.content) %} +{%- if m.reasoning_content is string %} + {%- set reasoning_content = m.reasoning_content %} +{%- elif '' in content %} + {%- set reasoning_content = content.split('')[0].split('')[-1] %} + {%- set content = content.split('')[-1] %} +{%- endif %} +{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%} +{{ '' + reasoning_content + ''}} +{%- else -%} +{{ '' }} +{%- endif -%} +{%- if content.strip() -%} +{{ content.strip() }} +{%- endif -%} +{% if m.tool_calls %} +{% for tc in m.tool_calls %} +{%- if tc.function %} + {%- set tc = tc.function %} +{%- endif %} +{{- '' ~ tc.name -}} +{% set _args = tc.arguments %}{% for k, v in _args.items() %}{{ k }}{{ v | tojson(ensure_ascii=False) if v is not string else v }}{% endfor %}{% endfor %} +{% endif %} +{%- elif m.role == 'tool' -%} +{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|observation|>' -}} + {%- set block_start = loop.index0 -%} + {%- set ns_blk = namespace(end=block_start) -%} + {%- for j in range(block_start, messages|length) -%} + {%- if messages[j].role == 'tool' -%} + {%- set ns_blk.end = j -%} + {%- else -%} + {%- break -%} + {%- endif -%} + {%- endfor -%} + {%- set ns_a = namespace(tool_calls=none) -%} + {%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%} + {%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%} + {%- endif -%} + {%- set ns_chk = namespace(can_sort=true) -%} + {%- if not ns_a.tool_calls -%} + {%- set ns_chk.can_sort = false -%} + {%- else -%} + {%- for k in range(block_start, ns_blk.end + 1) -%} + {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%} + {%- set m = messages[k] -%} + {%- if is_list_of_outputs(m) -%} + {%- for entry in m.content -%} + {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%} + {%- set eid = id_of(entry) -%} + {%- if not eid -%} + {%- set ns_chk.can_sort = false -%} + {%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%} + {%- set ns_chk.can_sort = false -%} + {%- elif not tc_id_exists(ns_a.tool_calls, eid) -%} + {%- set ns_chk.can_sort = false -%} + {%- endif -%} + {%- endfor -%} + {%- else -%} + {%- set tk_id = id_of(m) -%} + {%- if not tk_id -%} + {%- set ns_chk.can_sort = false -%} + {%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%} + {%- set ns_chk.can_sort = false -%} + {%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%} + {%- set ns_chk.can_sort = false -%} + {%- endif -%} + {%- endif -%} + {%- endfor -%} + {%- for i in range(ns_a.tool_calls | length) -%} + {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%} + {%- set tc_id = id_of(ns_a.tool_calls[i]) -%} + {%- if not tc_id -%} + {%- set ns_chk.can_sort = false -%} + {%- endif -%} + {%- for j in range(i + 1, ns_a.tool_calls | length) -%} + {%- if id_of(ns_a.tool_calls[j]) == tc_id -%} + {%- set ns_chk.can_sort = false -%} + {%- break -%} + {%- endif -%} + {%- endfor -%} + {%- endfor -%} + {%- endif -%} + {%- if ns_chk.can_sort -%} + {%- for tc in ns_a.tool_calls -%} + {%- set tc_id = id_of(tc) -%} + {%- for k in range(block_start, ns_blk.end + 1) -%} + {%- set m = messages[k] -%} + {%- if is_list_of_outputs(m) -%} + {%- for entry in m.content -%} + {%- set eid = id_of(entry) -%} + {%- if eid == tc_id -%} + {%- if entry.output is iterable and entry.output is not string and entry.output is not mapping and entry.output and entry.output.0.type == "tool_reference" -%} + {{- tool_references_to_response(entry.output) -}} + {%- else -%} + {{- tool_response(visible_text(entry.output)) -}} + {%- endif -%} + {%- endif -%} + {%- endfor -%} + {%- else -%} + {%- set tk_id = id_of(m) -%} + {%- if tk_id == tc_id -%} + {{- render_tool_response(m) -}} + {%- endif -%} + {%- endif -%} + {%- endfor -%} + {%- endfor -%} + {%- else -%} + {%- for k in range(block_start, ns_blk.end + 1) -%} + {{- render_tool_response(messages[k]) -}} + {%- endfor -%} + {%- endif -%} +{% endif -%} +{%- elif m.role == 'system' -%} +<|system|>{{ visible_text(m.content) }} +{%- endif -%} +{%- endfor -%} +{%- if add_generation_prompt -%} + <|assistant|>{{- '' -}} +{%- endif -%} diff --git a/8bit/config.json b/8bit/config.json new file mode 100644 index 0000000000000000000000000000000000000000..049d6141977dca71bbc05ae57f780cbd929bd3a9 --- /dev/null +++ b/8bit/config.json @@ -0,0 +1,300 @@ +{ + "architectures": [ + "Glm5NextForConditionalGeneration" + ], + "image_end_token_id": 154831, + "image_start_token_id": 154830, + "image_token_id": 154854, + "model_type": "glm5_next", + "quantization": { + "bits": 8, + "group_size": 128, + "mode": "affine" + }, + "quantization_config": { + "bits": 8, + "group_size": 128, + "mode": "affine" + }, + "text_config": { + "attention_bias": false, + "attention_dropout": 0.0, + "dtype": "bfloat16", + "eos_token_id": [ + 154820, + 154827, + 154829 + ], + "first_k_dense_replace": 3, + "hc_eps": 1e-06, + "hc_mult": 4, + "hc_sinkhorn_iters": 20, + "head_dim": 0, + "hidden_act": "silu", + "hidden_size": 4096, + "index_head_dim": 128, + "index_kpool": 4, + "index_kpool_always_select_tail": true, + "index_kpool_compress": true, + "index_n_heads": 32, + "index_share_for_mtp_iteration": true, + "index_topk": 2048, + "indexer_rope_interleave": true, + "indexer_types": [ + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full", + "full" + ], + "initializer_range": 0.02, + "intermediate_size": 12288, + "kv_lora_rank": 512, + "layer_types": [ + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention", + "linear_attention", + "linear_attention", + "deepseek_sparse_attention", + "linear_attention" + ], + "linear_attn_config": { + "full_attn_layers": [ + 3, + 7, + 11, + 15, + 19, + 23, + 27, + 31, + 35, + 39, + 43 + ], + "gate_lower_bound": -5.0, + "head_dim": 128, + "kda_layers": [ + 0, + 1, + 2, + 4, + 5, + 6, + 8, + 9, + 10, + 12, + 13, + 14, + 16, + 17, + 18, + 20, + 21, + 22, + 24, + 25, + 26, + 28, + 29, + 30, + 32, + 33, + 34, + 36, + 37, + 38, + 40, + 41, + 42, + 44 + ], + "num_heads": 64, + "short_conv_kernel_size": 4 + }, + "max_position_embeddings": 1048576, + "mhc": true, + "mla_use_nope": true, + "mlp_layer_types": [ + "dense", + "dense", + "dense", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse", + "sparse" + ], + "model_type": "glm5_next_text", + "moe_intermediate_size": 2048, + "moe_router_dtype": "float32", + "n_group": 1, + "n_routed_experts": 288, + "n_shared_experts": 1, + "norm_topk_prob": true, + "num_attention_heads": 64, + "num_experts_per_tok": 8, + "num_hidden_layers": 45, + "num_key_value_heads": 64, + "num_nextn_predict_layers": 1, + "output_router_logits": false, + "pad_token_id": 154820, + "q_lora_rank": 1536, + "qk_head_dim": 256, + "qk_nope_head_dim": 256, + "qk_rope_head_dim": 0, + "rms_norm_eps": 1e-05, + "routed_scaling_factor": 2.5, + "router_aux_loss_coef": 0.001, + "scoring_func": "sigmoid", + "swiglu_limit": 10.0, + "tie_word_embeddings": false, + "topk_group": 1, + "topk_method": "noaux_tc", + "use_cache": true, + "v_head_dim": 256, + "vocab_size": 154880 + }, + "tie_word_embeddings": false, + "transformers_version": "5.16.0", + "video_end_token_id": 154833, + "video_start_token_id": 154832, + "video_token_id": 154855, + "vision_config": { + "attention_bias": true, + "attention_dropout": 0.0, + "depth": 24, + "hidden_act": "silu", + "hidden_size": 1024, + "image_size": 448, + "in_channels": 3, + "initializer_range": 0.02, + "intermediate_size": 4096, + "model_type": "glm5_next_vision", + "num_heads": 16, + "out_hidden_size": 4096, + "patch_size": 14, + "projection_intermediate_size": 10240, + "rms_norm_eps": 1e-05, + "spatial_merge_size": 2, + "swiglu_limit": 10.0, + "temporal_patch_size": 2 + } +} diff --git a/8bit/configuration.json b/8bit/configuration.json new file mode 100644 index 0000000000000000000000000000000000000000..d2e70990713c4a50ee19edb60b99d85c658bea95 --- /dev/null +++ b/8bit/configuration.json @@ -0,0 +1 @@ +{"task":"image-text-to-text"} \ No newline at end of file diff --git a/8bit/generation_config.json b/8bit/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..637ee6afa5c6ebfba4eb24bd5b9df68550143597 --- /dev/null +++ b/8bit/generation_config.json @@ -0,0 +1,12 @@ +{ + "_from_model_config": true, + "eos_token_id": [ + 154820, + 154827, + 154829 + ], + "pad_token_id": 154820, + "temperature": 1.0, + "top_p": 0.95, + "transformers_version": "5.16.0" +} diff --git a/8bit/merge_manifest.json b/8bit/merge_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..39e1eb047f13e6e5a5b74b9bf01c2417e2aa97bd --- /dev/null +++ b/8bit/merge_manifest.json @@ -0,0 +1,15 @@ +{ + "format": "FP8_DYNAMIC", + "source": "/shared/Models/GLM-5.3-Flash", + "adapter": "/shared/LoRA/GLM-5.3-Flash-Ablitered2", + "merge": "streamed dequantize + LoRA BA * alpha/r + 128x128 E4M3 requantize", + "validation": { + "target_count": 22521, + "quantized_target_count": 22499, + "dense_target_count": 22, + "shard_count_with_targets": 52, + "rank": 1, + "lora_alpha": 1 + }, + "elapsed_seconds": 1326.20317029953 +} diff --git a/8bit/mlx_manifest.json b/8bit/mlx_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..f742f2fdd015fa8ac772625c8f5ab2bd4eab2b71 --- /dev/null +++ b/8bit/mlx_manifest.json @@ -0,0 +1,13 @@ +{ + "format": "MLX", + "source": "/shared/AbliterixedModels/GLM-5.3-Flash-Uncensored-FP8", + "method": "model-free affine RTN using mlx.core.quantize", + "scale_dtype": "float16", + "bias_dtype": "float16", + "group_size": 128, + "bits": 8, + "mode": "affine", + "quantized_tensor_count": 37860, + "dense_tensor_count": 910, + "elapsed_seconds": 294.8754210472107 +} diff --git a/8bit/model-00001-of-00062.safetensors b/8bit/model-00001-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..deed0d8b2e26aface1d0aafa2e3dbcd39dc16189 --- /dev/null +++ b/8bit/model-00001-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f1f46c9c90c26fc93839db2f2778ec94a448181873227375a0740dda8995d3f +size 5418416081 diff --git a/8bit/model-00002-of-00062.safetensors b/8bit/model-00002-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..5f9a5297f115052aee301fba36c79e905239719b --- /dev/null +++ b/8bit/model-00002-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:716f9225f00ebb8367a5bcf814c053bd8dc9129ceab53492581bf32084c95a05 +size 5279884407 diff --git a/8bit/model-00003-of-00062.safetensors b/8bit/model-00003-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..c7a17f6d6c8b3fc5a61c3d1d001073404b9612cd --- /dev/null +++ b/8bit/model-00003-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee89c3cef68666805933cf1d17459791cf656123604b7309a359b52ca2bfbe1f +size 5425991456 diff --git a/8bit/model-00004-of-00062.safetensors b/8bit/model-00004-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ebc746f6fa60a68da27e09e49790a29e807bcff4 --- /dev/null +++ b/8bit/model-00004-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1610d938ffba4aaa7c4921e60f920c5f04c33453384527ce35c983ee79ecca06 +size 5387575820 diff --git a/8bit/model-00005-of-00062.safetensors b/8bit/model-00005-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..8b56839f1b7cab7fd34a8c122950daa97cb7e9ed --- /dev/null +++ b/8bit/model-00005-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2e406cc3c128da558180d10e4f15a5a6d071a6227526e3d3d57fffc7c549617 +size 5504515388 diff --git a/8bit/model-00006-of-00062.safetensors b/8bit/model-00006-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ff0624bdfcbff6358d8d54c81d9f114c3e77b61b --- /dev/null +++ b/8bit/model-00006-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37324c6c947a2459df5d6ae62419922eb96beb9825c2a8a2e6cd4499170c0cad +size 5528095540 diff --git a/8bit/model-00007-of-00062.safetensors b/8bit/model-00007-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..d8114b846ff40423621d2bba45969261750cc69a --- /dev/null +++ b/8bit/model-00007-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8b63b611f951713faf0b8e85223b57f72ffd7e86915729d4237210cff725f9b +size 5387576047 diff --git a/8bit/model-00008-of-00062.safetensors b/8bit/model-00008-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..c16cd6484ee739567574f306e47544c2c3ac8bc4 --- /dev/null +++ b/8bit/model-00008-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c6ee4672e784d98890e5bcde4c9ea20747c132938fecda7d841698d17e6309d +size 5387575776 diff --git a/8bit/model-00009-of-00062.safetensors b/8bit/model-00009-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..f99ab03d4c12d9da77ba99b8e061b692d52a4ff5 --- /dev/null +++ b/8bit/model-00009-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25b844aad6c367f4bdf8f25fb6b50d0bfbba2eb3117b2059ca4d0aba430e50e0 +size 5529313255 diff --git a/8bit/model-00010-of-00062.safetensors b/8bit/model-00010-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ccf1869c514f4464708706958eb99569205a6dde --- /dev/null +++ b/8bit/model-00010-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c47ac69935cdbd76031f0abcf52485efad5d302cc7cb4cd757fb86f9f449879 +size 5386358244 diff --git a/8bit/model-00011-of-00062.safetensors b/8bit/model-00011-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..97f901d4430178dda76dcf17089e78c5d5819c48 --- /dev/null +++ b/8bit/model-00011-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f4c94668e688178bdc84954b58e62f7279106e2338d338d3be7f78bdf99cdf9 +size 5504515398 diff --git a/8bit/model-00012-of-00062.safetensors b/8bit/model-00012-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..37ea0c0c440734537c19b493dd43b6832c65a51a --- /dev/null +++ b/8bit/model-00012-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6aee5b03bf5007d5198e74d3b306f6317324e2dc096317362b883b0761499066 +size 5387575722 diff --git a/8bit/model-00013-of-00062.safetensors b/8bit/model-00013-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..eb2649172dd50c1184e8d2551eb047620d509066 --- /dev/null +++ b/8bit/model-00013-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6c41623af60a2746956a2dd3fba08ffa93a75142807c15d66d463c352b8334e +size 5528095571 diff --git a/8bit/model-00014-of-00062.safetensors b/8bit/model-00014-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..adb6b978c202a3a7e9b0378dbb1b029162377320 --- /dev/null +++ b/8bit/model-00014-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f41390ed528818dd4fec3aebf0eaf8debae6354cef5e4974bbd33d0abc6ac39 +size 5387576093 diff --git a/8bit/model-00015-of-00062.safetensors b/8bit/model-00015-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ccfba2ed79d17660ab501b56d1db3c4387a4d501 --- /dev/null +++ b/8bit/model-00015-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:341e1fce626a7cf8a31b6e8448c636f78aca9cae07e7c80d9aac03aef3660a89 +size 5387575774 diff --git a/8bit/model-00016-of-00062.safetensors b/8bit/model-00016-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ea84595e1d17df55a85b07dd6deaa714bae03321 --- /dev/null +++ b/8bit/model-00016-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:914b5cb614f0caea558e083e5d1483a7612698c2e58638237794d29f0bb98f99 +size 5528095113 diff --git a/8bit/model-00017-of-00062.safetensors b/8bit/model-00017-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..06bc58240bdf8d41dc0aee4b8a3ce9decac1e835 --- /dev/null +++ b/8bit/model-00017-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30b96367aba59fe494b649917a47b8ed17898c9ba157dfd5e145fd46a03c6a4d +size 5362772186 diff --git a/8bit/model-00018-of-00062.safetensors b/8bit/model-00018-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..4138cd2aa622d62e2dfb431191ff49452014be9c --- /dev/null +++ b/8bit/model-00018-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4af3130d3e8a772701070fd32d07249a9ea478fcb2742e4fc21c3d19bb8e2bbf +size 5387575812 diff --git a/8bit/model-00019-of-00062.safetensors b/8bit/model-00019-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..c93bd03e14e82e46520c096262ec63e7f00aca2b --- /dev/null +++ b/8bit/model-00019-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58b13cfab303abbfa3d588652cfaae37e551f27dfd917c6a1a38a19569f8ed24 +size 5387575802 diff --git a/8bit/model-00020-of-00062.safetensors b/8bit/model-00020-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ee4df81374c742a1d136a51f189650420876bd70 --- /dev/null +++ b/8bit/model-00020-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a0142deca136d4d589c23a0356a330ee217f58dcb394685f78cbb011b4c247c +size 5528095706 diff --git a/8bit/model-00021-of-00062.safetensors b/8bit/model-00021-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..5909ab8ede5102761b9a02ac216a47232df7e0b6 --- /dev/null +++ b/8bit/model-00021-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdcbcd8ce095f9327872125ccbb4f8b766a55166038ea4121b9425d52fd1d0e9 +size 5387575868 diff --git a/8bit/model-00022-of-00062.safetensors b/8bit/model-00022-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..99e7ec83d38e7510a7510ee88b505c2aa8da8a0e --- /dev/null +++ b/8bit/model-00022-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f8bd4858b4bc1c0054f3d178e73741d3a185bdeb189a03c76bd1b0a76551d6c +size 5504515405 diff --git a/8bit/model-00023-of-00062.safetensors b/8bit/model-00023-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..e531ad481b4bca7ed7cc2397018ffe8f42ecd325 --- /dev/null +++ b/8bit/model-00023-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:997079152d0f10bc31d4cd786c8146133ec52d5b58e763d6c238ebc8ece6a3ef +size 5528095212 diff --git a/8bit/model-00024-of-00062.safetensors b/8bit/model-00024-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..67a2cc3a31f6f8ffadccb936eac0310b87b7372c --- /dev/null +++ b/8bit/model-00024-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a0008aabf17027ca3e74f68221c9513041d1da2d09ac2e73be257512abd66d0 +size 5387576260 diff --git a/8bit/model-00025-of-00062.safetensors b/8bit/model-00025-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..c0cdd87a344ad5f12f9e5b96d4eaf3ee1ed8bcde --- /dev/null +++ b/8bit/model-00025-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca0166795000008ad47499634b035be06c8dda4c66e0e5156a2721ef67ff0531 +size 5387575784 diff --git a/8bit/model-00026-of-00062.safetensors b/8bit/model-00026-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..dfedee19c700f2cc60dc77df128d12d63c9e4253 --- /dev/null +++ b/8bit/model-00026-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:235b790af6113e13cde4218857bbccac80b3e822cd47e1d70147518e00e5780c +size 5387575694 diff --git a/8bit/model-00027-of-00062.safetensors b/8bit/model-00027-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..9d2d1c9c1e056040b120b0904803830d96877ec2 --- /dev/null +++ b/8bit/model-00027-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98b6b3e84fd8a0edc02214c2ce4c888c97b1d67ff20cdfe46449f6de5a5af07e +size 5528095743 diff --git a/8bit/model-00028-of-00062.safetensors b/8bit/model-00028-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..0f4032c52c76b280247ae2acc725448b29207472 --- /dev/null +++ b/8bit/model-00028-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76766f6b6c740d70b6ecbc8fc6ff2083c09020a398d876079e6614c3827ac0df +size 5504515568 diff --git a/8bit/model-00029-of-00062.safetensors b/8bit/model-00029-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..58b9de84d4a791595ebceb58aa928bb884d35cea --- /dev/null +++ b/8bit/model-00029-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8acc2fbae86f250a0e6fb11228d0c2b1b2cfa05c0e62c0c9847c7b154547302 +size 5387575780 diff --git a/8bit/model-00030-of-00062.safetensors b/8bit/model-00030-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..1ad151d525ac6d5b64a024a19b71cd4370bf68a4 --- /dev/null +++ b/8bit/model-00030-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dc193f33bde6ef32fe4939ad918638445ad902c965db5ce827517fff555e73c +size 5528095377 diff --git a/8bit/model-00031-of-00062.safetensors b/8bit/model-00031-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..53733a7f2b3d1d662ca529f636ccca3a80f1284a --- /dev/null +++ b/8bit/model-00031-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7500fe006c2c885d9799e2fb99462ae973d10f34e3d7875a3b423e1fe70e9c9 +size 5387574666 diff --git a/8bit/model-00032-of-00062.safetensors b/8bit/model-00032-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..7aa0abbb473beee15f357668d08942e0297cee87 --- /dev/null +++ b/8bit/model-00032-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2930d4c7a8414f1dded68cc1633cf55c94d9d3dfd7af8bd28305171ac04c259 +size 5504514421 diff --git a/8bit/model-00033-of-00062.safetensors b/8bit/model-00033-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..c6d475e0e2f42817cfec8e1fa81ebf8da3f4e648 --- /dev/null +++ b/8bit/model-00033-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb222970d7f1e8e05f3864e8a3233baa6c3864e67646dc7b01ff9b00ebf2ce5a +size 5387575758 diff --git a/8bit/model-00034-of-00062.safetensors b/8bit/model-00034-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..8f6fc71e76c5b1b4d1df76dc490a1afb2baf22cc --- /dev/null +++ b/8bit/model-00034-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82b30bdfdbbe72ebb79854e016750f893c948b53663c19e19f397e91681c7915 +size 5528095698 diff --git a/8bit/model-00035-of-00062.safetensors b/8bit/model-00035-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..657e0cfad48db33ef21ea5b7e07fcccd26431d14 --- /dev/null +++ b/8bit/model-00035-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8119c3705406452917d7ffb200b5dff63db9b2ecebcd12e4385c683f0d1b6ce +size 5504515439 diff --git a/8bit/model-00036-of-00062.safetensors b/8bit/model-00036-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..c0698cf2b4bd7c6b9ab64f5aeecf780523ae4dcd --- /dev/null +++ b/8bit/model-00036-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:438487eab80fa957f19c4a7afc31e12a46dc9a810545585479e4dd8543ec5f77 +size 5387575778 diff --git a/8bit/model-00037-of-00062.safetensors b/8bit/model-00037-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..8a4538deb68e0c9e77b63ea5aaaaf2601e10e8a8 --- /dev/null +++ b/8bit/model-00037-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40af989e91214fc03cda20204dcf636ee7147a563f8a162beb0e6046d4641f18 +size 5528095370 diff --git a/8bit/model-00038-of-00062.safetensors b/8bit/model-00038-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..3916a535236845fc80fbcbe61cc29136cced88f1 --- /dev/null +++ b/8bit/model-00038-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eedb7ae702a03bd71f4204701d792e75bfc0be13a7cdbbe0d5c256bacd141b11 +size 5387576267 diff --git a/8bit/model-00039-of-00062.safetensors b/8bit/model-00039-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..861b2cef634c30a011e26f062d392091d8060881 --- /dev/null +++ b/8bit/model-00039-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07f3ac550580d5b32a02d2ba5ee270916429ef0a23fed8078bf5c0d2d47ae280 +size 5387575717 diff --git a/8bit/model-00040-of-00062.safetensors b/8bit/model-00040-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..1cafad6698dbf0166fe1548cf6fc2cc4f7a3740d --- /dev/null +++ b/8bit/model-00040-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:724ecea409c1a0cc41ab1d82d0565b6fe34cd7422c9aa65b3f86cc966780b3ff +size 5504515373 diff --git a/8bit/model-00041-of-00062.safetensors b/8bit/model-00041-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..59694263bffe79e7ec2736d6703189e44d0f1db0 --- /dev/null +++ b/8bit/model-00041-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b877ab8f5f44f826f757ac1a89d7a63aec927ef41cf3d63c0702b292a0d8bef2 +size 5528095705 diff --git a/8bit/model-00042-of-00062.safetensors b/8bit/model-00042-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..90eea25299c83afa570834cc183926e3a3866d2a --- /dev/null +++ b/8bit/model-00042-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:551cb614c00bd76fff5e0c25c8fd3fab597c581e626b2b410925399db012400a +size 5387575896 diff --git a/8bit/model-00043-of-00062.safetensors b/8bit/model-00043-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..fc38f3044ddbd791eacdb404527f49213535af47 --- /dev/null +++ b/8bit/model-00043-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2d1cab747a04bc66298c473d151b7f94d7e83935e107170e22c81240392b4ce +size 5387575737 diff --git a/8bit/model-00044-of-00062.safetensors b/8bit/model-00044-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..3200a54a95d721e70129de77fb6021fe3bf36364 --- /dev/null +++ b/8bit/model-00044-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d36a4b4e7c2d9aa9114e520b530852f55f5cc308f42bd60e08219eba462857d6 +size 5528095370 diff --git a/8bit/model-00045-of-00062.safetensors b/8bit/model-00045-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..8b9719c93b568227b3e10ad1ccc64b206f06d0b4 --- /dev/null +++ b/8bit/model-00045-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e26f97c596a2585e24c7ec641c33eb63b014ac33ae11288eed5a1eba2cb9a66f +size 5387576097 diff --git a/8bit/model-00046-of-00062.safetensors b/8bit/model-00046-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..7bb27828e4f110768a16f12452d3c5363b98b9ea --- /dev/null +++ b/8bit/model-00046-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2ebb687f99befd435e5dd6f3b770982c53b5a65910ed7178c3f83314a1b71a1 +size 5504514575 diff --git a/8bit/model-00047-of-00062.safetensors b/8bit/model-00047-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..88a6fd396e41ac89242129386517336d759f5a8d --- /dev/null +++ b/8bit/model-00047-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b4c2ab42afd0eef38bbc4ff00778dccfcccd1882e27dcd273f73e69b6a15350 +size 5387574013 diff --git a/8bit/model-00048-of-00062.safetensors b/8bit/model-00048-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..a056d4c64d70218485d73838292c3b13ce545eb6 --- /dev/null +++ b/8bit/model-00048-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2dca1ff108b83b98a2440af7e5c2b44a3219d2d87934b0b38070179cf716ca57 +size 5528095715 diff --git a/8bit/model-00049-of-00062.safetensors b/8bit/model-00049-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ff2be77f1add00c81c322ac0e82a92e353457221 --- /dev/null +++ b/8bit/model-00049-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1451f35b142f63ad7b3f0919c252a4db49b5d9344ea5f27b99f3e6ee578d44a8 +size 5387575762 diff --git a/8bit/model-00050-of-00062.safetensors b/8bit/model-00050-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ef722ce9cf2797826d37e192aee8608d069ca44f --- /dev/null +++ b/8bit/model-00050-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ecb2b097581cfd2ae9e821f0f6e5883bb289e731abb42cf014843af61538e36 +size 5387575620 diff --git a/8bit/model-00051-of-00062.safetensors b/8bit/model-00051-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..4f85893c728531ee005d26028a28fe901f1805ef --- /dev/null +++ b/8bit/model-00051-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcd08d19b228fabb32fede900ff427ab8f362668d9ca2e5122742d02d94df871 +size 5528095345 diff --git a/8bit/model-00052-of-00062.safetensors b/8bit/model-00052-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..cec0c8a57b4a4a1e419222a208f8e6d86a3d3b92 --- /dev/null +++ b/8bit/model-00052-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48087a02e776dfc9226a058cb9a0095dc220b4d175d23e512adcfd21a11de806 +size 5387576139 diff --git a/8bit/model-00053-of-00062.safetensors b/8bit/model-00053-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..35cb3144a97769a20689a49d67afe60f0e26b6f1 --- /dev/null +++ b/8bit/model-00053-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0716df9c65a85bcaee198919dba1aa29e539846cdb3ec4a753711630b0d37e53 +size 5504515375 diff --git a/8bit/model-00054-of-00062.safetensors b/8bit/model-00054-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..578bf617f28f04175cc717bfda7c2af0775cf82d --- /dev/null +++ b/8bit/model-00054-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e67a4e8f00899a5aaa7e006664fd5d35cab0b2f6624e6baaa9a0f5592b48eb19 +size 5387575832 diff --git a/8bit/model-00055-of-00062.safetensors b/8bit/model-00055-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..7b077380eb2f89499881f3ae90dd1884ed06eca6 --- /dev/null +++ b/8bit/model-00055-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72c97c75db6e778d4c85effe2ddae2f50e4d23d18003e6a194559a3968b6c7dc +size 5528093877 diff --git a/8bit/model-00056-of-00062.safetensors b/8bit/model-00056-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..47ea2ebc097d8b5aeb83e3456de6d4900b938239 --- /dev/null +++ b/8bit/model-00056-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:facf77e91ff70dfc8efbc40ae6c7a7756bea63aab84650f828304ab96b0bbae8 +size 5387573961 diff --git a/8bit/model-00057-of-00062.safetensors b/8bit/model-00057-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..59495cb166134a2198ce65d4c5fa4a5449b858eb --- /dev/null +++ b/8bit/model-00057-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb8da399dc692d13198e2ac15bec8593c2e52972cb20d829998cefca05f75f4f +size 5387573921 diff --git a/8bit/model-00058-of-00062.safetensors b/8bit/model-00058-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..e1ee0c579ef4a61400a79e58e8400e33ed48cf9c --- /dev/null +++ b/8bit/model-00058-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:500bae740ee285fee1a30c58ed3d4a8cde86463cbd1f3812e4f3049976150edf +size 5528093563 diff --git a/8bit/model-00059-of-00062.safetensors b/8bit/model-00059-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..72db5e2a2ae24a7e904a7c4ff6d0137533eb9d12 --- /dev/null +++ b/8bit/model-00059-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf547a8bbfb0f0bdf3392b869e3ed2a5f00a190ab186a47c93bc7f848a7a8313 +size 5504513892 diff --git a/8bit/model-00060-of-00062.safetensors b/8bit/model-00060-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..53aee58ab7018e47defdee9691d0c9053f5bee26 --- /dev/null +++ b/8bit/model-00060-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e89477c19f4d8861290b0530e3c353975b261eea0fd6294aeb6ecc470f8954da +size 5387573875 diff --git a/8bit/model-00061-of-00062.safetensors b/8bit/model-00061-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..23890667baf425b9299836c46baeec4e902f1780 --- /dev/null +++ b/8bit/model-00061-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c718f1800ce5162ed70936f0dda19912bc3f7de7bc1fe7daec7d6e87f7c1f4d +size 5394579904 diff --git a/8bit/model-00062-of-00062.safetensors b/8bit/model-00062-of-00062.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..a8b5cee4c2dcbda0a54307bce5b6bbeecd71aeba --- /dev/null +++ b/8bit/model-00062-of-00062.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0bbfd3addcbc487f53faa552b2576bc70140a68028f6a97ee14b1ca37e8bd00 +size 668381506 diff --git a/8bit/model.safetensors.index.json b/8bit/model.safetensors.index.json new file mode 100644 index 0000000000000000000000000000000000000000..9f86184335e0b3c47fde015e02a365369333cd46 --- /dev/null +++ b/8bit/model.safetensors.index.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6771676122ee131b9bf6d2b45f59305f167543a389ae9a2a67756f77c8057531 +size 12082500 diff --git a/8bit/processor_config.json b/8bit/processor_config.json new file mode 100644 index 0000000000000000000000000000000000000000..3ec2a058b2cdec556eca0f621e8c5164eec213c2 --- /dev/null +++ b/8bit/processor_config.json @@ -0,0 +1,44 @@ +{ + "image_processor": { + "do_rescale": true, + "patch_expand_factor": 1, + "merge_size": 2, + "image_mean": [ + 0.48145466, + 0.4578275, + 0.40821073 + ], + "image_std": [ + 0.26862954, + 0.26130258, + 0.27577711 + ], + "temporal_patch_size": 2, + "patch_size": 14, + "min_image_tokens": 16, + "max_image_tokens": 8000, + "image_processor_type": "Glm5NextImageProcessor" + }, + "video_processor": { + "do_rescale": true, + "video_processor_type": "Glm5NextVideoProcessor", + "patch_expand_factor": 1, + "merge_size": 2, + "image_mean": [ + 0.48145466, + 0.4578275, + 0.40821073 + ], + "image_std": [ + 0.26862954, + 0.26130258, + 0.27577711 + ], + "temporal_patch_size": 2, + "patch_size": 14, + "min_image_tokens": 16, + "max_image_tokens": 240000, + "fps": 2 + }, + "processor_class": "Glm5NextProcessor" +} diff --git a/8bit/tokenizer.json b/8bit/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..aba40197a4cdb5607f4ab7a05fb0a4ee8054fd6d --- /dev/null +++ b/8bit/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19e773648cb4e65de8660ea6365e10acca112d42a854923df93db4a6f333a82d +size 20217442 diff --git a/8bit/tokenizer_config.json b/8bit/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..e375fa0a4e16660ce0e2026e39374d35dad4c079 --- /dev/null +++ b/8bit/tokenizer_config.json @@ -0,0 +1,33 @@ +{ + "backend": "tokenizers", + "clean_up_tokenization_spaces": false, + "do_lower_case": false, + "eos_token": "<|endoftext|>", + "extra_special_tokens": [ + "<|endoftext|>", + "[MASK]", + "[gMASK]", + "[sMASK]", + "", + "", + "<|system|>", + "<|user|>", + "<|assistant|>", + "<|observation|>", + "<|begin_of_image|>", + "<|end_of_image|>", + "<|begin_of_video|>", + "<|end_of_video|>", + "<|begin_of_audio|>", + "<|end_of_audio|>", + "<|begin_of_transcription|>", + "<|end_of_transcription|>" + ], + "is_local": true, + "model_max_length": 1048576, + "model_specific_special_tokens": {}, + "pad_token": "<|endoftext|>", + "padding_side": "left", + "remove_space": false, + "tokenizer_class": "TokenizersBackend" +}