Get started
Verification report · signed

143 of 146 claims verified at floor 0.9.

Every claim below was scored against the source it cites. Check the signature offline with the key at /.well-known/report-keys, or re-run any claim with the pinned judge.

The report

Digestsha256:c18c1aad28dfae68b3685559e410a2480bc28ac5a86b142842e2e9c105a99e62
Signing key idpem-9ec90d53d901e315
Judgegoogle/gemini-4-argon · v0-dev
Judge prompt hashsha256:1e64388843ffb61194ac8007b4992da06d5edd7ac2671ec35b1e82d8c2a9d04d
AI Source of Truthrecord · entity AI Source of Truth verdict for record 63c8ff730fda
Pipelinecore-0
Mean entailment0.987
Signed2026-11-19
Versionv1
Artifact digestsha256:3f6506f05948a623ebf944f2d14721f394ec8891ee4e861b92703b8b3671462c
Source commitsha256:a61592bb25c7940e594e454ecb438404247acdfa991bf5994304b653f2857a8f
Verified at2026-11-19T02:17:27.687Z
Cited byno other product cites this version yet

Agents: fetch the same report with artifacts_get view report (its freshness carries the version, digest, source commit and verified time, and its citation says whether it met its floor), compare versions with view versions, and re-check a claim with claims_verify (no token needed; see the MCP reference).

What this report checked

  • Sources were locked and hashed before any claim was scored
  • The text was split into atomic factual claims
  • Each claim was scored against the source it cites by the pinned judge
  • Each claim was bound to verified, in review or cut at the floor

Checks not run

  • Claims were re-verified after the style pass

What this report does not cover

  • Whether the cited sources are themselves true
  • Factual statements the decomposition step did not extract as claims
  • Safety or security of code, commands or instructions in the artifact
  • Licensing or ownership of the artifact content
  • Parts of a long source that share few words with a claim: the judge saw only the passages of that source closest to the claim
Judge versionv0-dev

Verify it yourself

This report is also an in-toto attestation in a Sigstore bundle, signed with the report key. Check it with cosign and the published key; you need no ContextFile code. Full steps: /docs/verify.

Key idpem-9ec90d53d901e315
Rekornot logged (only reports on the registry are logged; cosign needs --insecure-ignore-tlog=true)
curl -sSo attestation.sigstore.json 'https://contextfile.ai/reports/sha256%3Ac18c1aad28dfae68b3685559e410a2480bc28ac5a86b142842e2e9c105a99e62/attestation.sigstore.json'
curl -sS 'https://contextfile.ai/.well-known/report-keys' | jq -r '.keys[] | select(.key_id == "pem-9ec90d53d901e315") | .pem' > report-key.pem
cosign verify-blob-attestation \
  --new-bundle-format --bundle attestation.sigstore.json \
  --key report-key.pem \
  --type https://contextfile.ai/verification-report/v1 \
  --insecure-ignore-tlog=true \
  ./artifact-file

Replace ./artifact-file with the file you bought; cosign checks that its SHA-256 is the statement subject. To read the scope block from the bundle:

jq -r .dsseEnvelope.payload attestation.sigstore.json | base64 -d | jq .predicate.body.scope

Claims

ClaimSourceScoreStateRe-check
CLM-0001
Transformers is a PyTorch-first library.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/philosophy.md1verified
CLM-0002
Transformers aims to provide models that are faithful to their papers, easy to use, and easy to hack.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/philosophy.md1verified
CLM-0003
Each model requires three core classes: configuration, model, and a preprocessing class.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/philosophy.md1verified
CLM-0004
Tokenizers handle NLP, image processors handle images, video processors handle videos, feature extractors handle audio, and processors handle multimodal inputs.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/philosophy.md1verified
CLM-0005
Each model requires three core classes: configuration, model, and a preprocessing class.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/index.md1verified
CLM-0006
Models can be used with Pipeline or Trainer.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/index.md1verified
CLM-0007
Installing from source gives the latest version rather than the stable one.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/installation.md1verified
CLM-0008
The latest version installed from source may not always be stable.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/installation.md1verified
CLM-0009
An editable install links your local copy to the Transformers repository.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/installation.md1verified
CLM-0010
With an editable install, you must keep the local folder to keep using it.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/installation.md1verified
CLM-0011
Transformers can be installed from the conda-forge channel with conda install conda-forge::transformers.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/installation.md1verified
CLM-0012
The dtype argument controls the dtype used to instantiate weights.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0013
By default Transformers uses the dtype or legacy torch_dtype value from config.json.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0014
If neither dtype nor torch_dtype is present in config.json, Transformers uses the dtype of the first floating-point weight in the checkpoint.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0015
device_map accepts explicit per-module placement, including "cpu" and "disk".
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0016
When any weight maps to "disk", you must set offload_folder, because that is where the offloaded weights are stored.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0017
max_memory caps what each device holds.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0018
max_memory={} forces the entire model onto disk.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0019
Disk offloading trades memory for speed.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0020
Fully disk offloading requires accelerate>1.14.0.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0021
Loading a custom model requires trust_remote_code=True.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0022
The docs advise loading a custom model from a specific revision (commit hash) so the model code cannot change underneath you.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/models.md1verified
CLM-0023
revision in from_pretrained selects a model version by commit hash, tag, or branch.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_sharing.md1verified
CLM-0024
A revision pin in from_pretrained lasts for the call only.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_sharing.md1verified
CLM-0025
For reproducibility across runs, pass an explicit commit hash or a tag you treat as fixed, and do not rely on main or another moving branch staying fixed.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_sharing.md1verified
CLM-0026
Backbones are loaded with AutoBackbone.from_pretrained.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/backbones.md1verified
CLM-0027
out_indices selects which layer's feature map to extract from a backbone.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/backbones.md1verified
CLM-0028
Vision models expect PyTorch tensors of pixel values (batch size, channels, height, width).
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/image_processors.md1verified
CLM-0029
The image processor resizes or center-crops, then normalizes and rescales the values.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/image_processors.md1verified
CLM-0030
Some models use dynamic resolution, and their processors preserve aspect ratio and let the amount of preprocessed data grow with the image.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/image_processors.md1verified
CLM-0031
How an image is divided in dynamic resolution is model-specific, so consult each model's doc page.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/image_processors.md1verified
CLM-0032
Every pretrained audio model has an associated feature extractor, which reads its configuration from preprocessor_config.json.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/feature_extractors.md1verified
CLM-0033
Expected audio input shapes differ by model.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/feature_extractors.md1verified
CLM-0034
Whisper expects input_features of shape (batch_size, feature_size, sequence_length).
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/feature_extractors.md1verified
CLM-0035
Wav2Vec2 expects input_values of shape (batch_size, sequence_length).
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/feature_extractors.md1verified
CLM-0036
The sampling rate of your audio must match the sampling rate of the dataset the pretrained model was trained on.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/feature_extractors.md1verified
CLM-0037
When adding a feature extractor, __call__ must validate the input sampling rate when users pass sampling_rate.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_audio_processing_components.md1verified
CLM-0038
On a sampling rate mismatch, __call__ should raise an error rather than silently resample.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_audio_processing_components.md1verified
CLM-0039
A new feature extractor is saved with save_pretrained from the conversion script.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_audio_processing_components.md1verified
CLM-0040
Preprocessing config files should not be created or edited by hand.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_audio_processing_components.md1verified
CLM-0041
New classes are added to __all__, and __init__.py is regenerated with python utils/check_inits.py --fix_and_overwrite.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_audio_processing_components.md1verified
CLM-0042
An entry in FEATURE_EXTRACTOR_MAPPING_NAMES lets AutoFeatureExtractor load the class.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_audio_processing_components.md1verified
CLM-0043
generate handles text generation and is available for all models with generative capabilities.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/llm_tutorial.md1verified
CLM-0044
Streaming returns text as soon as it is generated.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/generation_features.md1verified
CLM-0045
For streaming, create a TextStreamer with the tokenizer and pass it to the streamer parameter of generate.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/generation_features.md1verified
CLM-0046
Self-speculative decoding uses a model's intermediate layers as the assistant.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/assisted_decoding.md1verified
CLM-0047
Pass assistant_early_exit to generate to set the exit layer for self-speculative decoding.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/assisted_decoding.md1verified
CLM-0048
Self-speculative decoding only works for models trained to support early-exit logits.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/assisted_decoding.md1verified
CLM-0049
Multi-token prediction (MTP) drafts candidate tokens with extra prediction layers from the main model's own checkpoint.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/assisted_decoding.md1verified
CLM-0050
MTP works only with checkpoints trained with MTP layers, such as DeepSeek-V3 and GLM-4.5.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/assisted_decoding.md1verified
CLM-0051
Pass use_mtp=True to generate to enable MTP.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/assisted_decoding.md1verified
CLM-0052
Passing use_mtp=True to generate raises an error if the model has no MTP layers.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/assisted_decoding.md1verified
CLM-0053
MTP supports greedy search and sampling, but not batched inputs.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/assisted_decoding.md1verified
CLM-0054
A custom generation method lives in a Model repository and needs the model, custom_generate/generate.py, an optional custom_generate/requirements.txt, and a README.md carrying the custom_generate tag.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/generation_strategies.md1verified
CLM-0055
If a custom generation method's pinned Python requirements are not met, loading raises an exception about missing requirements.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/generation_strategies.md1verified
CLM-0056
max_batch_tokens defaults to 8192, bounded by available GPU memory and never below 256, while num_blocks fills the remaining memory.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching.md1verified
CLM-0057
ContinuousBatchingConfig accepts options such as max_memory_percent, page_size, and scheduler_type ("fifo" or "prefill_first").
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching.md1verified
CLM-0058
page_size must be at least 4 or initialization raises a ValueError.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching.md1verified
CLM-0059
The default for page_size is 256, and the block_size parameter is deprecated in favor of page_size.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching.md1verified
CLM-0060
The continuous batching scheduler enforces a safety_margin; once free cache capacity falls below it, new prefills are held back and only active decodes continue.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching_architecture.md1verified
CLM-0061
The FIFO scheduler defaults safety_margin to 0.15, prefill_first defaults to 0.0, and 0 disables the margin.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching_architecture.md1verified
CLM-0062
allow_block_sharing defaults to True.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching_architecture.md1verified
CLM-0063
Prefix sharing is active only when every allocator supports it, so only full-attention-only models use it, and pure sliding and hybrid models disable it.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching_architecture.md1verified
CLM-0064
When a request cannot be offloaded to the CPU swap pool, the manager performs a soft reset by appending the generated tokens to the original prompt, freeing the request's cache blocks, and re-queuing it.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching_architecture.md1verified
CLM-0065
CPU offloading copies KV blocks to a pinned CPU buffer when cpu_offload_space is greater than 0.0.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/continuous_batching_architecture.md1verified
CLM-0066
Setting attn_implementation="sdpa" explicitly requests SDPA.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_doc/beit.md1verified
CLM-0067
For BEiT, SDPA is used by default for torch>=2.1.1 when an implementation is available, and half precision is recommended for the best speedups.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_doc/beit.md1verified
CLM-0068
Custom 4D attention masks depend on the backend: sdpa takes a boolean or float mask, and eager takes a float mask only.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/attention_interface.md1verified
CLM-0069
flash_attention_2 and flex_attention use their own mask formats and do not accept a raw 4D mask.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/attention_interface.md1verified
CLM-0070
In a float mask, 0.0 attends and -inf masks, and reusing the 1/0 convention of a 2D padding mask is a common mistake.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/attention_interface.md1verified
CLM-0071
The experts backends are "eager", "batched_mm", "grouped_mm", "deepgemm", and "deepgemm_megamoe".
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/experts_interface.md0.5cut
CLM-0072
grouped_mm requires PyTorch 2.9+ and is the most efficient CPU backend for all input sizes.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/experts_interface.md1verified
CLM-0073
batched_mm is not recommended on CPU.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/experts_interface.md1verified
CLM-0074
deepgemm is CUDA-only.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/experts_interface.md1verified
CLM-0075
deepgemm_megamoe targets Blackwell (SM100+) with FP4-quantized experts under expert parallelism.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/experts_interface.md1verified
CLM-0076
Tensor parallel strategies subclass TensorParallelLayer, and expert-parallel strategies subclass ExpertParallelLayer.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/perf_infer_gpu_multi.md1verified
CLM-0077
Packed weights, such as gate_up_proj, need PackedColwiseParallel or PackedRowwiseParallel, because basic ColwiseParallel or RowwiseParallel shard packed weights incorrectly.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/perf_infer_gpu_multi.md1verified
CLM-0078
Custom tensor parallel strategies inherit from TensorParallelLayer, and every hook has a no-op default.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/perf_infer_gpu_multi.md1verified
CLM-0079
The Kernels library loads optimized compute kernels from the Hub; for example, attn_implementation="kernels-community/flash-attn2" loads a FlashAttention-2 kernel without installing the package.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/optimization_overview.md1verified
CLM-0080
Quantization is configured by passing a config such as BitsAndBytesConfig to quantization_config in from_pretrained.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/optimization_overview.md1verified
CLM-0081
The cache_implementation argument of generate sets a cache strategy, and offloading the cache to the CPU keeps only the current layer on the GPU.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/optimization_overview.md1verified
CLM-0082
TrainingArguments provides the options for customizing a training run.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/training.md1verified
CLM-0083
In TrainingArguments, bf16=True is for hardware that supports it (Ampere+ GPUs), with fp16=True as the fallback on older hardware.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/training.md1verified
CLM-0084
gradient_accumulation_steps simulates a larger effective batch size.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/training.md1verified
CLM-0085
gradient_checkpointing trades compute for memory by recomputing activations in the backward pass.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/training.md1verified
CLM-0086
eval_strategy and save_strategy control when to evaluate and save, and load_best_model_at_end requires eval_strategy to be set.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/training.md1verified
CLM-0087
Gradient checkpointing keeps one activation per checkpointed layer on the GPU, and setting offload holds them in pinned host memory instead, at the cost of device-to-host and host-to-device copies.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/grad_checkpointing.md1verified
CLM-0088
Partial checkpointing uses every_n_layers: the default of 1 checkpoints every layer, 2 checkpoints layers 1, 3, 5, and so on, and only modules inheriting from GradientCheckpointingLayer are counted.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/grad_checkpointing.md1verified
CLM-0089
With Trainer, set every_n_layers in gradient_checkpointing_kwargs.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/grad_checkpointing.md1verified
CLM-0090
DDP keeps a full model copy on each GPU, processes non-overlapping data shards, and averages gradients with an all-reduce before the optimizer step; use it when the model fits on one GPU.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/ddp.md1verified
CLM-0091
With an Accelerate config file, accelerate launch train.py configures training, and the fsdp_config and deepspeed arguments are unnecessary.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/accelerate.md1verified
CLM-0092
accelerator_config accepts settings without dedicated top-level arguments, for example non_blocking=True alongside dataloader_pin_memory.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/accelerate.md1verified
CLM-0093
In a DeepSpeed config, "auto" lets DeepSpeed fill values from TrainingArguments, and if you set a value explicitly, you must use the same value in both places.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/deepspeed.md1verified
CLM-0094
When using an Accelerate config file for DeepSpeed, Accelerate ignores the deepspeed argument in TrainingArguments.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/deepspeed.md1verified
CLM-0095
EarlyStoppingCallback stops training when the metric has not improved for early_stopping_patience consecutive evaluations, and it requires metric_for_best_model and eval_strategy.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/trainer_callbacks.md1verified
CLM-0096
ProgressCallback is the default callback, PrinterCallback is used when disable_tqdm=True, and they can be swapped manually with remove_callback and add_callback.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/trainer_callbacks.md1verified
CLM-0097
DefaultFlowCallback manages the default logging, evaluation, and checkpoint schedule, and overriding it is the main way to customize when those happen.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/trainer_callbacks.md1verified
CLM-0098
GRPOTrainer subclasses get_train_dataloader to batch generation across steps; with train_batch_size=4 and steps_per_generation=8, the dataloader produces batches of 32.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/trainer_customize.md1verified
CLM-0099
DPOTrainer subclasses compute_loss because its loss differs from standard cross-entropy.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/trainer_customize.md1verified
CLM-0100
Mixed-precision training needs two weight copies at 6 bytes per parameter, Adam-style optimizer states add 8 bytes per parameter, and gradients in fp32 take 4 bytes per parameter.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_memory_anatomy.md1verified
CLM-0101
Forward activations vary with batch size, sequence length, depth, and hidden size, so those can exhaust GPU memory even when the model fits.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_memory_anatomy.md1verified
CLM-0102
Transformers wraps torch.compile on Gaudi, and any backend other than hpu_backend or eager switches to hpu_backend and logs a warning.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/intel_gaudi.md1verified
CLM-0103
torch_compile=True in TrainingArguments sets torch_compile_backend to "hpu_backend" on Intel Gaudi.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/intel_gaudi.md1verified
CLM-0104
Distributed training on Intel Gaudi uses the HCCL backend, which Transformers selects on Gaudi, and ddp_backend="hccl" sets it explicitly.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/intel_gaudi.md1verified
CLM-0105
Docstrings in modeling_brand_new_llama.py should include all necessary inputs and outputs.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_new_model.md1verified
CLM-0106
make style fixes code style, and make check-repo verifies it.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_new_model.md1verified
CLM-0107
Checkpoints are converted and uploaded to the Hub with a model card, and push_to_hub does the upload.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_new_model.md1verified
CLM-0108
You should consult the Transformers team on the model name and on getting the required access rights.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/add_new_model.md1verified
CLM-0109
Transformers enforces static rules on every modeling_*.py, modular_*.py, and configuration_*.py file, with the mlinter package providing the checker engine and the active rule set kept in utils/rules.toml.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modeling_rules.md1verified
CLM-0110
In python utils/check_modeling_structure.py, the --changed-only flag checks only files modified relative to main, --list-rules lists rules, and --rule TRF001 shows built-in docs for one rule.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modeling_rules.md1verified
CLM-0111
make typing runs mlinter alongside the ty type checker, and it reports rule numbers for type errors and TRF violations, which must be fixed manually.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/pr_checks.md0.9verified
CLM-0112
make typing runs mlinter alongside the ty type checker, and it reports rule numbers for type errors and TRF violations, which must be fixed manually.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/pr_checks.md0.9verified
CLM-0113
TRF013 fires when a PreTrainedModel subclass does not call self.post_init().
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modeling_rules.md1verified
CLM-0114
TRF036 flags nn.Sequential(...) in modeling and modular files, because Sequential names children by position.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modeling_rules.md1verified
CLM-0115
TRF004 flags # noqa comments in modeling, modular, and configuration files.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modeling_rules.md0cut
CLM-0116
To suppress a static rule violation, either add # trf-ignore: RULE_ID with an explanation on the violating line, or add the model's directory name to a rule's allowlist_models; do not use trf-ignore to silence violations that should be fixed.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modeling_rules.md1verified
CLM-0117
For new models, always prefer the modular workflow (modular_*.py) over # Copied from, as edits inside a # Copied from block are overwritten by make fix-repo.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/pr_checks.md0.8in_review
CLM-0118
In modular config classes, @auto_docstring and @strict must be added to every config class because the decorators aren't inherited from the parent.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modular_transformers.md1verified
CLM-0119
Modular files must declare a logger and an __all__ list at module level.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modular_transformers.md1verified
CLM-0120
The modular linter pulls in any class an inherited class depends on, unless you explicitly redefine it.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/modular_transformers.md1verified
CLM-0121
@auto_docstring writes the Returns section from the return type and pulls field descriptions from ModelOutput subclasses, while a custom Returns block takes precedence.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/auto_docstring.md1verified
CLM-0122
@auto_docstring supports a checkpoint argument that overrides the checkpoint inferred from the config docstring.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/auto_docstring.md1verified
CLM-0123
Slow tests, marked @slow, are skipped in regular CI and run with RUN_SLOW=1 python -m pytest tests/models/my_model/ -v.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/pr_checks.md1verified
CLM-0124
A build_pr_documentation job must pass before merging, and most failures are a missing toctree entry.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/pr_checks.md1verified
CLM-0125
Model test files follow a ModelTester/ModelTest pattern, and ModelTest calls prepare_config_and_inputs_for_common() on the tester.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/testing.md1verified
CLM-0126
Base test classes include CausalLMModelTest, VLMModelTest, and ALMModelTest.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/testing.md1verified
CLM-0127
make run-mic is opt-in and is not part of make check-repo or CI because it needs network access and model runtimes.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/testing.md1verified
CLM-0128
Output tracing relies on _can_record_outputs pointing at the exact layer classes a model instantiates.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_output_tracing.md1verified
CLM-0129
OutputRecorder takes a target_class, an optional index, and an optional layer_name, and an explicit output_hidden_states request takes precedence over select_hidden_states.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/model_output_tracing.md1verified
CLM-0130
In weight conversion, every matching WeightRenaming fires, but at most one WeightConverter may claim a key; renamings do not claim keys, so they can chain.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/weightconverter.md1verified
CLM-0131
Weight conversion operations include Chunk, Concatenate, MergeModulelist, and Transpose.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/weightconverter.md1verified
CLM-0132
A Dynamo .pt2 export is a pickle, so ExportedModel.from_pretrained refuses it unless you pass trust_remote_code=True, whereas ONNX, OpenVINO, and ExecuTorch programs load without it.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/exporters.md1verified
CLM-0133
A directory holds one export, so keep exports for several formats in their own subfolders and load them with subfolder=.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/exporters.md1verified
CLM-0134
AutoHfExporter and AutoExportConfig choose the exporter and config from a config or a dict.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/exporters.md1verified
CLM-0135
The documented install versions, such as torch==2.12.0, are the ones the exporter test suite is pinned against.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/exporters.md1verified
CLM-0136
A patch swaps an attribute for the duration of export and is then restored, whereas a fix rewrites the traced graph or program and is not reverted.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/exporters_extend.md1verified
CLM-0137
Patches are registered with @register_patch(backend, *paths).
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/exporters_extend.md1verified
CLM-0138
Use a patch for a single backend's lowering bug, and if the pattern blocks export across multiple backends, fix the model instead.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/exporters_extend.md1verified
CLM-0139
Entries in ONNX_DISABLE_OPTIMIZE must reference a specific upstream bug, and the list is expected to shrink.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/exporters_extend.md1verified
CLM-0140
ExecuTorch export uses from_pretrained, then Optimum applies torch.export to produce a model.pte file, and at runtime a C++ runner executes it.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/community_integrations/executorch.md1verified
CLM-0141
TensorRT-LLM's AutoDeploy accepts Transformers models without changes, loads the config with AutoConfig.from_pretrained, and loads the model with AutoModelForCausalLM.from_pretrained.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/community_integrations/tensorrt-llm.md1verified
CLM-0142
With SGLang, _attn_implementation is set to "sglang", and compatible models require _supports_attention_backend=True.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/community_integrations/sglang.md1verified
CLM-0143
Gradio integrates with Pipeline through gr.Interface.from_pipeline(pipeline).launch(), and setting share=True creates a temporary public link.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/pipeline_gradio.md1verified
CLM-0144
Verbosity levels from least to most verbose are CRITICAL/FATAL (50), ERROR (40), WARNING/WARN (30), INFO (20), and DEBUG (10), with WARNING as the library default.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/main_classes/logging.md1verified
CLM-0145
logging.get_verbosity and logging.set_verbosity get and set the level, and tqdm progress bars are shown during model download by default and can be toggled with logging.disable_progress_bar and logging.enable_progress_bar.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/main_classes/logging.md1verified
CLM-0146
warnings should be favored for library developers and dependent libraries, and logging for end users.
https://github.com/huggingface/transformers/blob/90cbc670be7f8272dd4db2ebd5ba1cb3b918c4bc/docs/source/en/main_classes/logging.md1verified