huggingface/transformers

Documented errors, page 3 of 6. Back to huggingface/transformers

Code / MessageTypeSeverityTags
Invalid kernel repo string
validation error kernel-config, hub-kernels, validation
The `output_attentions` attribute is not supported when…
validation error config, attention, attn-implementation, validation
Unexpected fields in the request
http error api, serving, audio, validation, http-422
Predictions and labels have mismatched lengths
validation error metrics, xnli, evaluation, shape-mismatch, deprecated
Unsupported p= , n=
exception error quantization, higgs, not-implemented, unsupported-arguments
LayerRepository requires `kernels` to be installed. Run…
exception error dependencies, kernels, optional-install, runtime-error
Invalid group type
exception error continuous-batching, kv-cache, model-config, attention, validation
_aten_grouped_mm: number of experts (mat_b.shape[0]) must…
exception error export, onnx, moe, dynamic-shapes
mask_replace_prob should be between 0 and 1.
validation error data-collator, configuration, validation
If `is_encoder_decoder` is True, make sure that…
validation error generate, encoder-decoder, beam-search, internal-api
'input' must be a string or list
http error serving, api, responses, validation, http-422
The sum of mask_replace_prob and random_replace_prob should…
validation error data-collator, configuration, validation, masked-language-modeling
assisted generation is not supported with stateful models…
validation error generation, assisted-decoding, stateful-model, incompatible-arguments
decompose_multimodal found no multi-modal submodules on
exception error export, multimodal, model-structure, transformers
Invalid max_matching_ngram_size or num_output_tokens
validation error python, transformers, generation, prompt-lookup, validation
Invalid values: max_batch_tokens =
validation critical memory, continuous-batching, configuration, solver
DebugUnderflowOverflow: aborting after
exception warning debugging, intentional-abort, training-loop
Require num_frequency_bins
exception error audio, mel-spectrogram, argument-validation
You need to install rich to use the chat interface. (`pip…
exception error cli, missing-dependency, rich, importerror, chat
Could not find TOC entry for
validation error cli, docs, toctree, valueerror, developer-tooling
flash_attn_with_kvcache_fn does not have a block_table or…
exception error continuous-batching, flash-attention, version-mismatch, kv-cache, environment
FSDP2 requires `torch>=2.7` (distributed checkpoint…
exception error fsdp, torch-version, distributed, environment
No requests can be scheduled and no requests can be…
exception critical runtime, scheduling, memory, continuous-batching, deadlock
prompt must be a string.
http error serving, api, completions, validation, http-400
AutoHfExporter.from_pretrained is not implemented yet…
exception error export, not-implemented, auto-class
Missing python-multipart dependency for file uploads…
exception error dependency, serving, file-upload, importerror
Length of the window
exception error audio, stft, argument-validation
Some of the keys in `watermarking_config` are defined…
validation error watermarking, generation-config, validation
out_features and out_indices should have the same length if…
exception error config, backbone, validation, consistency
random_replace_prob should be between 0 and 1.
validation error data-collator, configuration, validation
The following `model_kwargs` are not used by the model
validation error generation, kwargs, typo, argument-validation
Unknown window function
exception error audio, stft, argument-validation
`bos_token_id` has to be defined when no `input_ids` are…
validation error generate, bos-token, config, unconditional-generation
Passing a tuple of `past_key_values` is not supported…
validation error generation, cache, past-key-values, legacy-migration, breaking-change
SquadProcessor should be instantiated via SquadV1Processor…
validation error squad, processor, subclassing, question-answering, configuration
`encoder_ngram_size` has to be a strictly positive integer…
validation error generation, encoder-no-repeat-ngram, seq2seq, argument-validation
Expected config to be an ExecutorchConfig or dict, got
exception error export, executorch, type-error, config
Input waveform must have only one dimension, shape is
exception error audio, stft, shape-error
Calling `get_mtp_config` on a config without…
exception error config, mtp, architecture
Logits should have twice the batch size of the input ids…
validation error
Missing requirements in your local environment for
exception error dependencies, requirements, trust-remote-code, environment
Audio codebooks need at least one channel, but found
validation error audio-generation, codebooks, config-validation, logits-processor
Exporter must extend HfExporter
exception error export, registry, plugin, type-error
Some items in the output dictionary have a different batch…
exception error feature-extractor, batching, padding, transformers
The embed_dim ( ) is not a multiple of the number of…
validation error config, architecture, validation
Audio transcription requires sequential generation (not CB)
http error serving, audio, continuous-batching, http-400
norm must be one of None or "slaney"
exception error audio, mel-spectrogram, argument-validation
num_key_value_heads or num_attention_heads could not be…
validation error continuous-batching, kv-cache, model-config, gqa
only supports , but got generation mode ' '.
validation error generation, generation-mode, beam-search, model-capabilities
`head_dim` was provided as a list of length
validation error cache, early-initialization, export, shape-mismatch, valueerror, misleading-message
Unrecognized tokenizer name, should be one of
exception error tooling, tokenizer, conversion, cli
Unsupported attention implementation
validation error serving, attention, cli, validation, valueerror
Fused kernel requires a companion layout class named '…
validation error hub-kernels, fusion, kernel-authoring
Incorrect format used for image. Should be a URL, a local…
validation error image-processing, type-checking, torch, loading
return_tensors set to 'pt' but PyTorch can't be imported
exception error pytorch, environment, dependencies, runtime
`assistant_tokenizer` is not required when the main and…
validation error generation, assisted-decoding, tokenizer, universal-assisted-decoding
You can inspect the repository content at https://hf.co/…
exception error trust-remote-code, windows, security, platform
Expected `eos_token_id` to be a positive integer, found
validation error audio-generation, eos-token, config-validation, logits-processor
The main and assistant models have different tokenizers…
validation error generation, assisted-decoding, tokenizer, universal-assisted-decoding
Unsupported input item type
http error serving, api, responses, validation, http-422
Incorrect format used for image. Should be an url linking…
validation error image-processing, type-checking, loading
Linear attention layers can only be cropped by passing a…
exception error cache, linear-attention, crop, sign-convention, runtimeerror
There are one or more stop strings, either in the arguments…
validation error generation, stop-strings, tokenizer, stopping-criteria
Unable to convert output
exception error feature-extractor, batchfeature, tensor-conversion, transformers
Converting from SentencePiece and Tiktoken failed, if a…
exception error tokenizer, conversion, tiktoken, fallback
requires `trust_remote_code=True` in your `generate` call…
validation error generation, trust-remote-code, custom-generate, deprecation, security
Make sure that all the required parameters
validation error logits-processor, kwargs, introspection, api-misuse
replace_kernel_forward_from_hub requires `kernels` to be…
exception error dependencies, kernels, decorator, import-time
DeepGEMM kernel is missing required symbols
exception error
`min_tokens_to_keep` has to be a strictly positive integer…
validation error generation, epsilon-sampling, argument-validation
Missing `model` field in the request body.
http error api, serving, validation, http-422
out_indices must be valid indices for stage_names
exception error config, backbone, validation, index-error
`penalty` has to be a strictly positive float, but is
validation error generation, repetition-penalty, sampling, argument-validation
`problem_type="single_label_classification"` requires…
validation error config, classification, validation
Cannot call `update_conv_state` on a non-LinearAttention…
validation error cache, linear-attention, conv-state, layer-type, valueerror
`QuantizedCache` is only supported for models with only…
validation error cache, quantization, layer-type, sliding-window, hybrid-model, valueerror
Can only set a dictionary as `tp_plan`
exception error distributed, tensor-parallelism, type-validation, api-misuse
`per_layer_config` keys must be integer layer indices in…
exception error heterogeneity, config, index-validation, per-layer
You need to install `libcst` to run this command -> `pip…
validation error cli, missing-dependency, libcst, valueerror, developer-tooling
`top_k` has to be a strictly positive integer, but is
validation error generation, top-k, sampling, argument-validation
hop_length must be greater than zero
exception error audio, stft, argument-validation
Conversion mapping for
exception error conversion-mapping, registration, checkpoint-conversion
Multiple valid text configs were found in the model config
validation error config, text-config, multi-modal, ambiguity
Export config must extend ExportConfigMixin
exception error export, registry, plugin, type-error
inputs must be a 1D or 2D tensor, got
validation error generation, continuous-batching, paged-cache, tensor-shape
Model has no config class or model type
exception error python, transformers, fusion, model-config, model-type
To use , please install the following dependencies
exception error export, dependencies, import-error, environment
You called `get_seq_length` on layer index
validation error cache, linear-attention, layer-type, get-seq-length, valueerror
`inputs`: ` were passed alongside which is not allowed…
validation error generate, api-misuse, input-validation, multimodal
Number of key value heads
validation critical continuous-batching, tensor-parallelism, multi-gpu, gqa, kv-cache
The image to be converted to a PIL image contains values…
validation error image-processing, pil, range-validation, normalization, valueerror
`get_seq_length` can only be called on Attention layers…
validation error cache, linear-attention, get-seq-length, valueerror
Missing dependencies for serving. Install with `pip install…
exception error cli, serving, missing-dependency, importerror, extras
Unable to create tensor for
exception error feature-extractor, batchfeature, tensor-conversion, audio, transformers
accepts only keyword arguments, but found ` ` positional…
validation error config, dataclass, validation
Could not find `num_mtp_layers` in the model config. This…
validation error python, transformers, generation, mtp, speculative-decoding, model-config
requires the protobuf library but it was not found in your…
exception error dependencies, protobuf, tokenizer, conversion
No positive solution
exception critical memory, solver, continuous-batching, math
Unknown log_mel option
exception error audio, mel-spectrogram, argument-validation
CB worker is dead and cannot accept request
http critical serving, continuous-batching, crash, http-503