{"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/typical-decoding-for-natural-language","title":"Locally Typical Sampling","arxiv_id":"2202.00666","date":"2022-02-01","proceeding":null,"authors":["Clara Meister","Tiago Pimentel","Gian Wiher","Ryan Cotterell"],"abstract":"Today's probabilistic language generators fall short when it comes to producing coherent and fluent text despite the fact that the underlying models perform well under standard metrics, e.g., perplexity. This discrepancy has puzzled the language generation community for the last few years. In this work, we posit that the abstraction of natural language generation as a discrete stochastic process--which allows for an information-theoretic analysis--can provide new insights into the behavior of probabilistic language generators, e.g., why high-probability texts can be dull or repetitive. Humans use language as a means of communicating information, aiming to do so in a simultaneously efficient and error-minimizing manner; in fact, psycholinguistics research suggests humans choose each word in a string with this subconscious goal in mind. We formally define the set of strings that meet this criterion: those for which each word has an information content close to the expected information content, i.e., the conditional entropy of our model. We then propose a simple and efficient procedure for enforcing this criterion when generating from probabilistic models, which we call locally typical sampling. Automatic and human evaluations show that, in comparison to nucleus and top-k sampling, locally typical sampling offers competitive performance (in both abstractive summarization and story generation) in terms of quality while consistently reducing degenerate repetitions.","url_abs":"https://arxiv.org/abs/2202.00666v5","url_pdf":"https://arxiv.org/pdf/2202.00666v5.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":"typical-decoding-for-natural-language","repo_url":"https://github.com/cimeister/typical-sampling","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"typical-decoding-for-natural-language","repo_url":"https://github.com/guinmoon/llmfarm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"typical-decoding-for-natural-language","repo_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/main/inference.py","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"jax","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"tasks":[{"task_slug":"abstractive-text-summarization","task_name":"Abstractive Text Summarization"},{"task_slug":"story-generation","task_name":"Story Generation"},{"task_slug":"text-generation","task_name":"Text Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2202.00666","atlas_url":"https://app.syntology.ai/?focus=2202.00666","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2202.00666"},"calls":[{"tool":"get_harvested_code_for_paper","arguments":{"arxiv_id":"2202.00666"},"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":"2202.00666"},"call":"get_harvested_code_for_paper(arxiv_id=\"2202.00666\")"},{"tool":"get_code","arguments_in":{"code_sha256":"syntology.samples[].code_sha256"},"call":"get_code(code_sha256=\"…\")"},{"tool":"get_citation_path","arguments":{"paper_1":"2202.00666"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"2202.00666\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"2202.00666"},"call":"get_concepts_for_paper(arxiv_id=\"2202.00666\")"}],"by_repo":[{"repo":"cimeister/typical-sampling","kind":"official","samples":15,"ran":10,"instrument":5,"unverified":5},{"repo":"guinmoon/llmfarm","kind":"listed","samples":0,"ran":0,"instrument":0,"unverified":0},{"repo":"HomebrewNLP/HomebrewNLP-Jax","kind":"listed","samples":10,"ran":9,"instrument":0,"unverified":1}],"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/2202.00666.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/2202.00666.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/guinmoon/llmfarm","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cimeister/typical-sampling","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/main/inference.py","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"ran":10,"ran_violates":1,"ran_draft_wrong":5,"ran_honours":3,"unverified":6},"n_samples":25,"n_ran":19,"n_constructed":0,"n_ran_checked":14,"n_instrument":5,"n_unverified":6,"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":15,"ran":10,"n_ran_checked":5,"n_instrument":5,"repositories":1},"listed":{"samples":10,"ran":9,"n_ran_checked":9,"n_instrument":0,"repositories":1}},"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":15,"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":0,"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":18,"n_ran_without_level_date":1,"n_ran_signature_not_shown":0,"levels_written_between":{"first":"2026-09-24","last":"2026-09-26","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","census_is":"Syntology's function-name census ran implementations with this entry name on one shared input per bucket (the positional rank, kind and dtype of each array argument) and counted the distinct output digests (sha256 of the output rounded to 6 decimals). implementations and papers count the compared samples; distinct_outputs counts digests across all buckets; n_buckets is how many shared inputs were used. It is not a statement that any two samples compute one thing, and the name is a string, not an identity.","samples":[{"code_sha256":"29095fa631853bbe","code_sha256_prefix":"29095fa631853bbe","entry":"add_sq","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"src/backend.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/src/backend.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"name:str/0/str","fixture_out_type":"str","level_recorded_at":"2026-09-24T21:23:57.672461+00:00","retrieve_with":{"tool":"get_code","code_sha256":"29095fa631853bbe"},"code_page":null,"census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"29095fa631853bbe"}},{"code_sha256":"a727df5fd2f5599a","code_sha256_prefix":"a727df5fd2f5599a","entry":"check_number_comma","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/convert_slow_tokenizer.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/convert_slow_tokenizer.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"piece:str/0/str","fixture_out_type":"bool","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/check-number-comma","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"a727df5fd2f5599a"}},{"code_sha256":"d770e1dd1d799a47","code_sha256_prefix":"d770e1dd1d799a47","entry":"ensure_valid_input","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/convert_graph_to_onnx.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/convert_graph_to_onnx.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":"model:callable/0/?, tokens:dict/0/?, input_names:list/1/str","fixture_out_type":"tuple","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/ensure-valid-input","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"d770e1dd1d799a47"}},{"code_sha256":"58bc40af1d90b395","code_sha256_prefix":"58bc40af1d90b395","entry":"fn_if_dataclass","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"src/context.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/src/context.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"instance:TestDataClass/0/?, fn:callable/0/?","fixture_out_type":"TestDataClass","level_recorded_at":"2026-09-24T21:23:57.672461+00:00","code_page":null,"census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"58bc40af1d90b395"}},{"code_sha256":"5c302780d36773f7","code_sha256_prefix":"5c302780d36773f7","entry":"frame_encoder","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"script/quantized_vid2tfrecord.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/script/quantized_vid2tfrecord.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"frame:list/1/int","fixture_out_type":"bytes","level_recorded_at":"2026-09-24T21:54:21.362907+00:00","code_page":null,"census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"5c302780d36773f7"}},{"code_sha256":"a4475703ff58ecf9","code_sha256_prefix":"a4475703ff58ecf9","entry":"gelu_fast","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/activations.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/activations.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"signature":"x:Tensor/2/float","fixture_out_type":"Tensor","retrieve_with":{"tool":"get_code","code_sha256":"a4475703ff58ecf9"},"code_page":"/code/gelu-fast","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"a4475703ff58ecf9"}},{"code_sha256":"37a5eed2dbd663ca","code_sha256_prefix":"37a5eed2dbd663ca","entry":"gelu_fast","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/activations_tf.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/activations_tf.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"x:EagerTensor/2/float","fixture_out_type":"EagerTensor","level_recorded_at":"2026-09-26T01:24:49.973517+00:00","retrieve_with":{"tool":"get_code","code_sha256":"37a5eed2dbd663ca"},"code_page":"/code/gelu-fast","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"37a5eed2dbd663ca"}},{"code_sha256":"45bb87451230d5e8","code_sha256_prefix":"45bb87451230d5e8","entry":"gelu_new","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/activations.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/activations.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"x:Tensor/2/float","fixture_out_type":"Tensor","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","retrieve_with":{"tool":"get_code","code_sha256":"45bb87451230d5e8"},"code_page":"/code/gelu-new","census":{"url":"/census/gelu-new","implementations":3,"papers":7,"distinct_outputs":1,"n_buckets":1,"bucket_key":null,"bucket_index":null,"bucket_label":null},"census_bucket_fragment":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"45bb87451230d5e8"}},{"code_sha256":"95f27ee4e1e8c5d3","code_sha256_prefix":"95f27ee4e1e8c5d3","entry":"gelu_python","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/activations.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/activations.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"x:Tensor/2/float","fixture_out_type":"Tensor","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","retrieve_with":{"tool":"get_code","code_sha256":"95f27ee4e1e8c5d3"},"code_page":null,"census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"95f27ee4e1e8c5d3"}},{"code_sha256":"7efe3db5c9e2f94d","code_sha256_prefix":"7efe3db5c9e2f94d","entry":"generate_identified_filename","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/convert_graph_to_onnx.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/convert_graph_to_onnx.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":"filename:PosixPath/0/?, identifier:str/0/str","fixture_out_type":"PosixPath","level_recorded_at":"2026-09-24T15:16:18.137819+00:00","code_page":"/code/generate-identified-filename","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"7efe3db5c9e2f94d"}},{"code_sha256":"b5db92a796ef38f1","code_sha256_prefix":"b5db92a796ef38f1","entry":"get_abs_min_max","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/debug_utils.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/debug_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"var:Tensor/2/float, ctx:str/0/str","fixture_out_type":"str","level_recorded_at":"2026-09-25T12:39:03.006224+00:00","code_page":"/code/get-abs-min-max","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"b5db92a796ef38f1"}},{"code_sha256":"5fbd4f093295aa97","code_sha256_prefix":"5fbd4f093295aa97","entry":"init_class_copy","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"src/context.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/src/context.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"instance:SimpleDataClass/0/?, config:dict/0/?","fixture_out_type":"SimpleDataClass","level_recorded_at":"2026-09-24T21:23:57.672461+00:00","code_page":null,"census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"5fbd4f093295aa97"}},{"code_sha256":"cc8c8c3ebf0c343f","code_sha256_prefix":"cc8c8c3ebf0c343f","entry":"mish","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/activations_tf.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/activations_tf.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"x:ndarray/2/float","fixture_out_type":"EagerTensor","level_recorded_at":"2026-09-26T01:24:49.973517+00:00","code_page":"/code/mish","census":{"url":"/census/mish","implementations":5,"papers":8,"distinct_outputs":1,"n_buckets":1,"bucket_key":null,"bucket_index":null,"bucket_label":null},"census_bucket_fragment":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"cc8c8c3ebf0c343f"}},{"code_sha256":"e11d769ad67f0934","code_sha256_prefix":"e11d769ad67f0934","entry":"one_hot","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"inference.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/inference.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"inp:ArrayImpl/2/int, size:int/0/int","fixture_out_type":"ArrayImpl","level_recorded_at":"2026-09-24T21:23:57.672461+00:00","code_page":"/code/one-hot","census":{"url":"/census/one-hot","implementations":18,"papers":25,"distinct_outputs":10,"n_buckets":6,"bucket_key":null,"bucket_index":null,"bucket_label":null},"census_bucket_fragment":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"e11d769ad67f0934"}},{"code_sha256":"f7c85a0d6b11bf74","code_sha256_prefix":"f7c85a0d6b11bf74","entry":"promote_to","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"src/backend.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/src/backend.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"inp:ArrayImpl/1/float, dtype:callable/0/?","fixture_out_type":"ArrayImpl","level_recorded_at":"2026-09-24T21:23:57.672461+00:00","code_page":null,"census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"f7c85a0d6b11bf74"}},{"code_sha256":"e2d56cb91f999bef","code_sha256_prefix":"e2d56cb91f999bef","entry":"quick_gelu","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/activations_tf.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/activations_tf.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"signature":"x:EagerTensor/2/float","fixture_out_type":"EagerTensor","level_recorded_at":"2026-09-26T01:24:49.973517+00:00","retrieve_with":{"tool":"get_code","code_sha256":"e2d56cb91f999bef"},"code_page":"/code/quick-gelu","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"e2d56cb91f999bef"}},{"code_sha256":"417d7c14445e03e0","code_sha256_prefix":"417d7c14445e03e0","entry":"serialize","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"src/context.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/src/context.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"instance:SimpleDataClass/0/?","fixture_out_type":"SimpleDataClass","level_recorded_at":"2026-09-24T21:23:57.672461+00:00","code_page":"/code/serialize","census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"417d7c14445e03e0"}},{"code_sha256":"de13583a2c04b400","code_sha256_prefix":"de13583a2c04b400","entry":"square_grad","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"src/backend.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/src/backend.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"fn:callable/0/?, src:ArrayImpl/2/float, weight:ArrayImpl/1/float, weight_sq:ArrayImpl/1/float","fixture_out_type":"ArrayImpl","level_recorded_at":"2026-09-24T21:23:57.672461+00:00","code_page":null,"census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"de13583a2c04b400"}},{"code_sha256":"0a4d744fe302fd21","code_sha256_prefix":"0a4d744fe302fd21","entry":"try_except","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"script/quantized_vid2tfrecord.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/script/quantized_vid2tfrecord.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"signature":"fn:callable/0/?, default:NoneType/0/?","fixture_out_type":"function","level_recorded_at":"2026-09-24T21:23:57.672461+00:00","code_page":null,"census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"0a4d744fe302fd21"}},{"code_sha256":"4e643fa0b277f39b","code_sha256_prefix":"4e643fa0b277f39b","entry":"convert_slow_tokenizer","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/convert_slow_tokenizer.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/convert_slow_tokenizer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/convert-slow-tokenizer","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"4e643fa0b277f39b"}},{"code_sha256":"52eb8468051d0996","code_sha256_prefix":"52eb8468051d0996","entry":"decoder","repo":"HomebrewNLP/HomebrewNLP-Jax","repo_kind":"listed","path":"src/data.py","file_url":"https://github.com/HomebrewNLP/HomebrewNLP-Jax/blob/HEAD/src/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/decoder-2","census":null,"licence":"BSD-2-Clause","inline_ok":true,"inline_ok_link":true,"withheld_clause":null,"mcp_get_code":{"code_sha256":"52eb8468051d0996"}},{"code_sha256":"e187e5429b112df7","code_sha256_prefix":"e187e5429b112df7","entry":"deepspeed_reinit","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/deepspeed.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/deepspeed.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":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"e187e5429b112df7"}},{"code_sha256":"c551a79d5bb1b062","code_sha256_prefix":"c551a79d5bb1b062","entry":"detect_overflow","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/debug_utils.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/debug_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/detect-overflow","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"c551a79d5bb1b062"}},{"code_sha256":"07e637f202f76ddb","code_sha256_prefix":"07e637f202f76ddb","entry":"get_configuration_file","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/configuration_utils.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/configuration_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/get-configuration-file","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"07e637f202f76ddb"}},{"code_sha256":"3449d7d975edfb89","code_sha256_prefix":"3449d7d975edfb89","entry":"infer_shapes","repo":"cimeister/typical-sampling","repo_kind":"official","path":"src/transformers/convert_graph_to_onnx.py","file_url":"https://github.com/cimeister/typical-sampling/blob/HEAD/src/transformers/convert_graph_to_onnx.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"code_page":"/code/infer-shapes","census":null,"licence":"Apache-2.0","inline_ok":false,"inline_ok_link":false,"withheld_clause":"Apache-2.0, as GitHub detects it on this paper's repository, cimeister/typical-sampling, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it","mcp_get_code":{"code_sha256":"3449d7d975edfb89"}}]},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"17ac2fff8c4dd46111fcd1051b3e2f4c4cfc70c1a92585631e3025b4e67944fa","record_changed_at":"2026-10-04","record_changed_at_basis":"changed"}