{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/chatglm-a-family-of-large-language-models","title":"ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools","arxiv_id":"2406.12793","date":"2024-06-18","proceeding":null,"authors":["Team GLM",":","Aohan Zeng","Bin Xu","Bowen Wang","Chenhui Zhang","Da Yin","Dan Zhang","Diego Rojas","Guanyu Feng","Hanlin Zhao","Hanyu Lai","Hao Yu","Hongning Wang","Jiadai Sun","Jiajie Zhang","Jiale Cheng","Jiayi Gui","Jie Tang","Jing Zhang","Jingyu Sun","Juanzi Li","Lei Zhao","Lindong Wu","Lucen Zhong","Mingdao Liu","Minlie Huang","Peng Zhang","Qinkai Zheng","Rui Lu","Shuaiqi Duan","Shudan Zhang","Shulin Cao","Shuxun Yang","Weng Lam Tam","Wenyi Zhao","Xiao Liu","Xiao Xia","Xiaohan Zhang","Xiaotao Gu","Xin Lv","Xinghan Liu","Xinyi Liu","Xinyue Yang","Xixuan Song","Xunkai Zhang","Yifan An","Yifan Xu","Yilin Niu","Yuantao Yang","Yueyan Li","Yushi Bai","Yuxiao Dong","Zehan Qi","Zhaoyu Wang","Zhen Yang","Zhengxiao Du","Zhenyu Hou","Zihan Wang"],"abstract":"We introduce ChatGLM, an evolving family of large language models that we have been developing over time. This report primarily focuses on the GLM-4 language series, which includes GLM-4, GLM-4-Air, and GLM-4-9B. They represent our most capable models that are trained with all the insights and lessons gained from the preceding three generations of ChatGLM. To date, the GLM-4 models are pre-trained on ten trillions of tokens mostly in Chinese and English, along with a small set of corpus from 24 languages, and aligned primarily for Chinese and English usage. The high-quality alignment is achieved via a multi-stage post-training process, which involves supervised fine-tuning and learning from human feedback. Evaluations show that GLM-4 1) closely rivals or outperforms GPT-4 in terms of general metrics such as MMLU, GSM8K, MATH, BBH, GPQA, and HumanEval, 2) gets close to GPT-4-Turbo in instruction following as measured by IFEval, 3) matches GPT-4 Turbo (128K) and Claude 3 for long context tasks, and 4) outperforms GPT-4 in Chinese alignments as measured by AlignBench. The GLM-4 All Tools model is further aligned to understand user intent and autonomously decide when and which tool(s) touse -- including web browser, Python interpreter, text-to-image model, and user-defined functions -- to effectively complete complex tasks. In practical applications, it matches and even surpasses GPT-4 All Tools in tasks like accessing online information via web browsing and solving math problems using Python interpreter. Over the course, we have open-sourced a series of models, including ChatGLM-6B (three generations), GLM-4-9B (128K, 1M), GLM-4V-9B, WebGLM, and CodeGeeX, attracting over 10 million downloads on Hugging face in the year 2023 alone. The open models can be accessed through https://github.com/THUDM and https://huggingface.co/THUDM.","url_abs":"https://arxiv.org/abs/2406.12793v2","url_pdf":"https://arxiv.org/pdf/2406.12793v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"chatglm-a-family-of-large-language-models","repo_url":"https://github.com/thudm/chatglm-6b","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"chatglm-a-family-of-large-language-models","repo_url":"https://github.com/thudm/chatglm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"chatglm-a-family-of-large-language-models","repo_url":"https://github.com/thudm/chatglm3","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"chatglm-a-family-of-large-language-models","repo_url":"https://github.com/thudm/chatglm4","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"chatglm-a-family-of-large-language-models","repo_url":"https://github.com/thudm/glm-4","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"chatglm-a-family-of-large-language-models","repo_url":"https://github.com/2024-MindSpore-1/Code2/tree/main/model-1/chatglm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"chatglm-a-family-of-large-language-models","repo_url":"https://github.com/yangyucheng000/University/tree/main/model-2/chatglm4","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null}],"tasks":[{"task_slug":"all","task_name":"All"},{"task_slug":"gsm8k","task_name":"GSM8K"},{"task_slug":"humaneval","task_name":"HumanEval"},{"task_slug":"instruction-following","task_name":"Instruction Following"},{"task_slug":"mmlu","task_name":"MMLU"},{"task_slug":"math","task_name":"Math"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"gpt-4","method_name":"GPT-4"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"set","method_name":"SET"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2406.12793","atlas_url":"https://app.syntology.ai/?focus=2406.12793","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.12793"},"calls":[{"tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2406.12793"},"returns":"the samples harvested from this paper, each with its run record; it does not verify the paper"},{"tool":"get_code","arguments_in":"samples[].code_sha256","returns":"one stored sample by its code_sha256; not shown on this site"}]},"developers":"https://syntology.ai/developers","held":true,"reason":"in_graph_layer","checked_against":null,"agent_calls":[{"tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2406.12793"},"call":"get_harvested_code_for_paper(arxiv_id=\"2406.12793\")"},{"tool":"get_code","arguments_in":{"code_sha256":"syntology.samples[].code_sha256"},"call":"get_code(code_sha256=\"…\")"},{"tool":"get_citation_path","arguments":{"paper_1":"2406.12793"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"2406.12793\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"2406.12793"},"call":"get_concepts_for_paper(arxiv_id=\"2406.12793\")"}],"by_repo":[{"repo":"thudm/chatglm-6b","kind":"official","samples":5,"ran":4,"instrument":3,"unverified":1},{"repo":"thudm/chatglm","kind":"listed","samples":13,"ran":9,"instrument":1,"unverified":4},{"repo":"thudm/chatglm3","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2210.02414"],"harvested_for_calls":[{"arxiv_id":"2210.02414","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2210.02414"},"call":"get_harvested_code_for_paper(arxiv_id=\"2210.02414\")"}]},{"repo":"thudm/chatglm4","kind":"listed","samples":11,"ran":8,"instrument":2,"unverified":3},{"repo":"thudm/glm-4","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2408.16500"],"harvested_for_calls":[{"arxiv_id":"2408.16500","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2408.16500"},"call":"get_harvested_code_for_paper(arxiv_id=\"2408.16500\")"}]},{"repo":"2024-MindSpore-1/Code2","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"yangyucheng000/University","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0,"harvested_for_other_papers":1,"harvested_for":["2409.12191"],"harvested_for_calls":[{"arxiv_id":"2409.12191","tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2409.12191"},"call":"get_harvested_code_for_paper(arxiv_id=\"2409.12191\")"}]}],"by_repo_harvested_for_is":"harvested_for: the arXiv ids (as Syntology's graph holds them) of every paper whose samples Syntology's graph links to this repository, in arXiv-id order, complete; the page names the first 3 and says how many more. A link only: it does not say the papers are the same work, that one copied the other, or that the code implements this paper's method; harvested_for_calls gives the get_harvested_code_for_paper call for each arXiv-shaped id among them","by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code","read_at":"2026-10-05T00:36:11+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","ran_record":{"url":"https://syntology.ai/api/ran/2406.12793.json","schema":"syntology.ran_record/1","counts_crosswalk":{"n_samples":"syntology.counts.lifted","n_ran":"syntology.counts.executed","n_ran_checked":"syntology.counts.checked","n_instrument":"syntology.counts.instrument_failures","n_unverified":"syntology.counts.no_recorded_run"},"note":"live record, measured at request time; may be newer than this page's graph read","badge":"https://syntology.ai/api/ran/2406.12793.svg"},"claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/thudm/chatglm4","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/2024-MindSpore-1/Code2/tree/main/model-1/chatglm","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/thudm/chatglm","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yangyucheng000/University/tree/main/model-2/chatglm4","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/thudm/chatglm-6b","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/thudm/glm-4","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/thudm/chatglm3","reach":null}],"summary":{"ran_draft_wrong":6,"ran":14,"ran_honours":1,"unverified":8},"n_samples":29,"n_ran":21,"n_constructed":0,"n_ran_checked":15,"n_instrument":6,"n_unverified":8,"n_instrument_is":"failures of Syntology's instrument, not of the code","every_run_is_an_instrument_failure":false,"key_notes":{"n_ran_checked":"legacy name, kept unchanged so existing readers do not break: it counts the samples that ran with no instrument failure (honoured, violated, and ran with no contract checked); it does not mean a contract was checked, and the pages print it as 'K with no instrument failure', not 'K checked'","n_constructed":"a sub-count of the samples that ran, never subtracted from them and never a failure: an executed sample whose run returned an instance of its own class (fixture_out_type equals the entry name): the run built an object and did not compute a result (Syntology's RAN record, counts.constructed)"},"by_repo_kind":{"official":{"samples":5,"ran":4,"n_ran_checked":1,"n_instrument":3,"repositories":1},"listed":{"samples":24,"ran":17,"n_ran_checked":14,"n_instrument":3,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":1,"inline_ok_is":"inline_ok is true only when both licence gates allow Syntology to serve this code's text: this paper's link (inline_ok_link, from the licence of this paper's copy) and the stored copy of the same code that Syntology serves, which may have been first harvested from another repository. withheld_clause is Syntology's own wording of which gate keeps the text a pointer and why, and is null when inline_ok is true. This site shows no code text either way; n_pointer_only_for_licence counts samples with inline_ok false (both gates), n_pointer_only_link_allows those of them whose inline_ok_link is true","n_pointer_only_link_allows":1,"fixture_fields_is":{"signature_and_fixture_out_type":"the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right","level_recorded_at":"when Syntology's graph wrote the sample's verification level, not when the code executed; absent where the level was written before the date was kept, and never filled in with the build date","present_on":"samples that ran only; a key is absent, never empty, where the graph records nothing"},"n_ran_with_level_date":21,"n_ran_without_level_date":0,"n_ran_signature_not_shown":0,"levels_written_between":{"first":"2026-09-22","last":"2026-09-25","is":"the first and last UTC dates on which Syntology's graph wrote a verification level for a sample on this page that ran, not when the code executed"},"code_page_min_papers":5,"code_page_is":"a page for the entry name across every paper's harvested code; the name is a string, not an identity","samples":[{"code_sha256":"bda4be9967b8d807","code_sha256_prefix":"bda4be9967b8d807","entry":"auto_configure_device_map","repo":"thudm/chatglm-6b","repo_kind":"official","path":"utils.py","file_url":"https://github.com/thudm/chatglm-6b/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"num_gpus:int/0/int","fixture_out_type":"dict","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","retrieve_with":{"tool":"get_code","code_sha256":"bda4be9967b8d807"},"code_page":"/code/auto-configure-device-map","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"bda4be9967b8d807"}},{"code_sha256":"1f225fd39a7d3dcd","code_sha256_prefix":"1f225fd39a7d3dcd","entry":"b64_2_img","repo":"thudm/chatglm","repo_kind":"listed","path":"composite_demo/demo_ci.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/composite_demo/demo_ci.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"data:str/0/str","fixture_out_type":"PngImageFile","level_recorded_at":"2026-09-25T03:30:08.474462+00:00","code_page":null,"census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"1f225fd39a7d3dcd"}},{"code_sha256":"20f3c3d6999848e9","code_sha256_prefix":"20f3c3d6999848e9","entry":"build_prompt","repo":"thudm/chatglm-6b","repo_kind":"official","path":"cli_demo.py","file_url":"https://github.com/thudm/chatglm-6b/blob/HEAD/cli_demo.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"history:list/1/tuple","fixture_out_type":"str","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/build-prompt","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"20f3c3d6999848e9"}},{"code_sha256":"7ce6ba0a6898058f","code_sha256_prefix":"7ce6ba0a6898058f","entry":"build_prompt","repo":"thudm/chatglm-6b","repo_kind":"official","path":"cli_demo_vision.py","file_url":"https://github.com/thudm/chatglm-6b/blob/HEAD/cli_demo_vision.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"history:list/1/tuple, prefix:str/0/str","fixture_out_type":"str","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/build-prompt","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"7ce6ba0a6898058f"}},{"code_sha256":"45ac4198df42b5f0","code_sha256_prefix":"45ac4198df42b5f0","entry":"build_prompt","repo":"thudm/chatglm","repo_kind":"listed","path":"basic_demo/cli_demo.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/basic_demo/cli_demo.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"history:list/1/tuple","fixture_out_type":"str","level_recorded_at":"2026-09-25T04:30:57.282821+00:00","code_page":"/code/build-prompt","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"45ac4198df42b5f0"}},{"code_sha256":"9b5960772df6a819","code_sha256_prefix":"9b5960772df6a819","entry":"clean_ansi_codes","repo":"thudm/chatglm","repo_kind":"listed","path":"composite_demo/demo_ci.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/composite_demo/demo_ci.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"input_string:str/0/str","fixture_out_type":"str","level_recorded_at":"2026-09-24T23:25:36.931776+00:00","retrieve_with":{"tool":"get_code","code_sha256":"9b5960772df6a819"},"code_page":null,"census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"9b5960772df6a819"}},{"code_sha256":"c0b1c7a482944767","code_sha256_prefix":"c0b1c7a482944767","entry":"encode_image","repo":"thudm/chatglm4","repo_kind":"listed","path":"inference/glm4v_api_request.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/inference/glm4v_api_request.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"image_path:str/0/str","fixture_out_type":"str","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/encode-image","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"c0b1c7a482944767"}},{"code_sha256":"3ff3af9bca0ae239","code_sha256_prefix":"3ff3af9bca0ae239","entry":"get_image","repo":"thudm/chatglm4","repo_kind":"listed","path":"inference/trans_web_vision_demo.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/inference/trans_web_vision_demo.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"image_path:BytesIO/0/?, image_url:NoneType/0/?","fixture_out_type":"Image","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/get-image","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"3ff3af9bca0ae239"}},{"code_sha256":"826ceb601fb31250","code_sha256_prefix":"826ceb601fb31250","entry":"parse_text","repo":"thudm/chatglm-6b","repo_kind":"official","path":"web_demo.py","file_url":"https://github.com/thudm/chatglm-6b/blob/HEAD/web_demo.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"signature":"text:str/0/str","fixture_out_type":"str","level_recorded_at":"2026-09-22T14:31:46.068493+00:00","retrieve_with":{"tool":"get_code","code_sha256":"826ceb601fb31250"},"code_page":"/code/parse-text","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"826ceb601fb31250"}},{"code_sha256":"ca6cfdfc224a6e07","code_sha256_prefix":"ca6cfdfc224a6e07","entry":"parse_text","repo":"thudm/chatglm","repo_kind":"listed","path":"basic_demo/web_demo_gradio.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/basic_demo/web_demo_gradio.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"text:str/0/str","fixture_out_type":"str","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","retrieve_with":{"tool":"get_code","code_sha256":"ca6cfdfc224a6e07"},"code_page":"/code/parse-text","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":true,"withheld_clause":"this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from lyan62/FoodieQA, and GitHub detected no licence in that repository when it was checked","mcp_get_code":{"code_sha256":"ca6cfdfc224a6e07"}},{"code_sha256":"554545dbb567c8a2","code_sha256_prefix":"554545dbb567c8a2","entry":"postprocess_text","repo":"thudm/chatglm","repo_kind":"listed","path":"composite_demo/conversation.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/composite_demo/conversation.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"text:str/0/str","fixture_out_type":"str","level_recorded_at":"2026-09-25T04:30:57.282821+00:00","retrieve_with":{"tool":"get_code","code_sha256":"554545dbb567c8a2"},"code_page":"/code/postprocess-text","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"554545dbb567c8a2"}},{"code_sha256":"86830d055a7a9c5d","code_sha256_prefix":"86830d055a7a9c5d","entry":"preprocess_messages","repo":"thudm/chatglm4","repo_kind":"listed","path":"inference/trans_web_demo.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/inference/trans_web_demo.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"history:list/1/tuple, system_prompt:str/0/str","fixture_out_type":"list","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":null,"census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"86830d055a7a9c5d"}},{"code_sha256":"6c594f1eecbcd9c8","code_sha256_prefix":"6c594f1eecbcd9c8","entry":"process_batch","repo":"thudm/chatglm4","repo_kind":"listed","path":"finetune/finetune.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/finetune/finetune.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"batch:dict/0/?, tokenizer:MockTokenizer/0/?, max_input_length:int/0/int, max_output_length:int/0/int, combine:bool/0/bool","fixture_out_type":"dict","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/process-batch","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"6c594f1eecbcd9c8"}},{"code_sha256":"57df729a586c895a","code_sha256_prefix":"57df729a586c895a","entry":"process_batch","repo":"thudm/chatglm4","repo_kind":"listed","path":"finetune/finetune_vision.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/finetune/finetune_vision.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"batch:dict/0/?, tokenizer:MockTokenizer/0/?, max_input_length:int/0/int, max_output_length:int/0/int, combine:bool/0/bool","fixture_out_type":"dict","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/process-batch","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"57df729a586c895a"}},{"code_sha256":"31316bb1bf2a96b2","code_sha256_prefix":"31316bb1bf2a96b2","entry":"process_batch","repo":"thudm/chatglm","repo_kind":"listed","path":"finetune_demo/finetune_hf.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/finetune_demo/finetune_hf.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"batch:dict/0/?, tokenizer:MockTokenizer/0/?, max_input_length:int/0/int, max_output_length:int/0/int","fixture_out_type":"dict","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/process-batch","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"31316bb1bf2a96b2"}},{"code_sha256":"2cc2c269bdedbd33","code_sha256_prefix":"2cc2c269bdedbd33","entry":"process_batch_eval","repo":"thudm/chatglm4","repo_kind":"listed","path":"finetune/finetune.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/finetune/finetune.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"batch:dict/0/?, tokenizer:MockTokenizer/0/?, max_input_length:int/0/int, max_output_length:int/0/int, combine:bool/0/bool","fixture_out_type":"dict","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/process-batch-eval","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"2cc2c269bdedbd33"}},{"code_sha256":"5abe708b88a719ff","code_sha256_prefix":"5abe708b88a719ff","entry":"process_batch_eval","repo":"thudm/chatglm","repo_kind":"listed","path":"finetune_demo/finetune_hf.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/finetune_demo/finetune_hf.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"batch:dict/0/?, tokenizer:StandInTokenizer/0/?, max_input_length:int/0/int, max_output_length:int/0/int","fixture_out_type":"dict","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/process-batch-eval","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"5abe708b88a719ff"}},{"code_sha256":"7e93b9f509accf1c","code_sha256_prefix":"7e93b9f509accf1c","entry":"process_message","repo":"thudm/chatglm4","repo_kind":"listed","path":"finetune/finetune.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/finetune/finetune.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"message:dict/0/?","fixture_out_type":"dict","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":null,"census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"7e93b9f509accf1c"}},{"code_sha256":"51ffd8516205ff45","code_sha256_prefix":"51ffd8516205ff45","entry":"process_response","repo":"thudm/chatglm4","repo_kind":"listed","path":"demo/composite_demo/src/client.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/demo/composite_demo/src/client.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"output:str/0/str, history:list/1/dict","fixture_out_type":"tuple","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/process-response","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"51ffd8516205ff45"}},{"code_sha256":"1003bb97b27ee006","code_sha256_prefix":"1003bb97b27ee006","entry":"stream_chat","repo":"thudm/chatglm","repo_kind":"listed","path":"composite_demo/client.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/composite_demo/client.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"self:callable/0/?, tokenizer:StandInTokenizer/0/?, query:str/0/str, history:list/1/tuple, role:str/0/str, past_key_values:NoneType/0/?, max_new_tokens:int/0/int, do_sample:bool/0/bool, top_p:float/0/float, temperature:float/0/float, repetition_penalty:float/0/float, length_penalty:float/0/float, num_beams:int/0/int, logits_processor:NoneType/0/?, return_past_key_values:bool/0/bool","fixture_out_type":"generator","level_recorded_at":"2026-09-24T23:25:36.931776+00:00","code_page":null,"census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"1003bb97b27ee006"}},{"code_sha256":"22605b28667a4139","code_sha256_prefix":"22605b28667a4139","entry":"yaml_to_dict","repo":"thudm/chatglm","repo_kind":"listed","path":"composite_demo/demo_tool.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/composite_demo/demo_tool.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"tools:str/0/str","fixture_out_type":"list","level_recorded_at":"2026-09-24T23:25:36.931776+00:00","retrieve_with":{"tool":"get_code","code_sha256":"22605b28667a4139"},"code_page":null,"census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"22605b28667a4139"}},{"code_sha256":"e4671affec558222","code_sha256_prefix":"e4671affec558222","entry":"extract_code","repo":"thudm/chatglm","repo_kind":"listed","path":"composite_demo/demo_tool.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/composite_demo/demo_tool.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/extract-code","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"e4671affec558222"}},{"code_sha256":"66a222f9124359df","code_sha256_prefix":"66a222f9124359df","entry":"generate_glm4v","repo":"thudm/chatglm4","repo_kind":"listed","path":"inference/glm4v_server.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/inference/glm4v_server.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":null,"census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"66a222f9124359df"}},{"code_sha256":"91958a6f1719c4f7","code_sha256_prefix":"91958a6f1719c4f7","entry":"load_model_and_tokenizer","repo":"thudm/chatglm","repo_kind":"listed","path":"finetune_demo/inference_hf.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/finetune_demo/inference_hf.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/load-model-and-tokenizer","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"91958a6f1719c4f7"}},{"code_sha256":"bb6e915ee912453d","code_sha256_prefix":"bb6e915ee912453d","entry":"load_model_and_tokenizer","repo":"thudm/chatglm","repo_kind":"listed","path":"basic_demo/web_demo_gradio.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/basic_demo/web_demo_gradio.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/load-model-and-tokenizer","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"bb6e915ee912453d"}},{"code_sha256":"b461f4040f1eec9d","code_sha256_prefix":"b461f4040f1eec9d","entry":"load_model_on_gpus","repo":"thudm/chatglm-6b","repo_kind":"official","path":"utils.py","file_url":"https://github.com/thudm/chatglm-6b/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/load-model-on-gpus","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"b461f4040f1eec9d"}},{"code_sha256":"632dd3e505d6e594","code_sha256_prefix":"632dd3e505d6e594","entry":"load_tokenizer_and_model","repo":"thudm/chatglm","repo_kind":"listed","path":"finetune_demo/finetune_hf.py","file_url":"https://github.com/thudm/chatglm/blob/HEAD/finetune_demo/finetune_hf.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/load-tokenizer-and-model","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"632dd3e505d6e594"}},{"code_sha256":"a000febbe236a229","code_sha256_prefix":"a000febbe236a229","entry":"load_tokenizer_and_model","repo":"thudm/chatglm4","repo_kind":"listed","path":"finetune/finetune_vision.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/finetune/finetune_vision.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/load-tokenizer-and-model","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"a000febbe236a229"}},{"code_sha256":"e816697d6260afdd","code_sha256_prefix":"e816697d6260afdd","entry":"process_batch_eval","repo":"thudm/chatglm4","repo_kind":"listed","path":"finetune/finetune_vision.py","file_url":"https://github.com/thudm/chatglm4/blob/HEAD/finetune/finetune_vision.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/process-batch-eval","census":null,"licence":"Apache-2.0","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"e816697d6260afdd"}}]},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"5ee6bef1cc909f868ec7fd6ef37b963868381d5a15ab37b253b2e236de71a511","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}