huggingface/transformers
Documented errors, page 4 of 6. Back to huggingface/transformers
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Expected file upload, got string | http | error | api, serving, file-upload, validation, http-422 |
| `ngram_size` has to be a strictly positive integer, but is | validation | error | generation, no-repeat-ngram, argument-validation |
| Unsupported backward dtype | exception | error | fp-quant, quantization, config, dtype, validation |
| The batch size is not consistent across layers | validation | error | cache, batch-size, consistency, concat, valueerror |
| You should supply an instance of… | exception | error | feature-extractor, padding, audio, transformers |
| `decoder_start_token_id` expected to have length | validation | error | generate, encoder-decoder, batch-size, decoder-start-token |
| The image to be converted to a PIL image contains values… | validation | error | image-processing, pil, range-validation, valueerror |
| The server running on | validation | error | cli, chat, health-check, network, valueerror |
| db_range must be greater than zero | exception | error | audio, validation, decibels, configuration |
| mel_scale should be one of "htk", "slaney" or "kaldi". | exception | error | audio, mel-spectrogram, argument-validation |
| Unsupported backend for ExecuTorch export | exception | error | export, executorch, backend, config |
| Calling `get_mtp_config` on a config containing… | exception | error | config, mtp, layer-types |
| PyTorch must be installed to return a PyTorch dataset. | exception | error | squad, environment, pytorch, optional-dependency, question-answering |
| stopping_criteria is not supported for continuous batching… | validation | error | generation, continuous-batching, paged-cache, stopping-criteria, unsupported-feature |
| This tokenizer does not have a mask token which is… | validation | error | data-collator, tokenizer, permutation-language-modeling, xlnet |
| logit_processor_kwargs | validation | error | validation, logits-processor, types, continuous-batching |
| `model_outputs` cannot be None and they need to contain… | exception | error | python, transformers, generation, diffusion, hidden-states |
| `model_outputs` cannot be None, and they need to contain… | exception | error | python, transformers, generation, mtp, hidden-states |
| Server is pinned to ' '; requested ' '. | http | error | api, serving, model-pinning, http-400 |
| FuncRepository requires `kernels` to be installed. Run `pip… | exception | error | dependencies, kernels, optional-install |
| save_pretrained(..., distributed_checkpoint=True) is only… | exception | error | fsdp, distributed, checkpointing, config |
| Unsupported channel dimension format | validation | error | image-processing, channel-dimension, valueerror, validation |
| You called `get_mask_sizes` on layer index | validation | error | cache, linear-attention, mask, layer-type, valueerror |
| Async batching requires CUDA, but | exception | error | cuda, environment, async, continuous-batching |
| Length of the window | exception | error | audio, stft, argument-validation |
| min_value must be greater than zero | exception | error | audio, validation, decibels, numerical |
| You can construct a Cache either from a list `layers` of… | validation | error | cache, constructor, validation, valueerror |
| Can only set a dictionary as `pp_plan` | exception | error | pipeline-parallel, distributed, config, type-error |
| out_features and out_indices should correspond to the same… | exception | error | config, backbone, validation, consistency |
| Unable to convert output to PyTorch tensors format, PyTorch… | exception | error | feature-extractor, environment, pytorch, transformers |
| Unsupported dtype: ' '. Must be 'auto' or a valid torch… | validation | error | serving, dtype, cli, validation, valueerror |
| Expected 1 or 2 arguments, got | validation | error | cache, valueerror, encoder-decoder, arguments, transformers |
| `min_tokens_to_keep` has to be a positive integer, but is | validation | error | generation, top-p, argument-validation |
| Cannot call `update_indexer` on layer | validation | error | cache, indexer, layer-type, valueerror |
| `num_hidden_layers` ( ) must be equal to the number of ` `… | validation | error | config, architecture, layer-types, validation |
| --num_tokens_to_generate arguments should be larger than 1 | exception | error | deepgemm, fp8, block-size, checkpoint-config |
| `axis_value` for `quanto` backend has to be one of [`0`… | validation | error | quantization, kv-cache, config, validation |
| `epsilon_cutoff` has to be a float > 0 and < 1, but is | validation | error | generation, epsilon-sampling, cutoff, argument-validation |
| Expected model name as string | http | error | api, serving, validation, http-422 |
| inputs or input_ids must be provided for CB generation. | validation | error | generation, continuous-batching, paged-cache, missing-input |
| Text and ids have mismatched lengths | validation | error | data-processing, validation, length-mismatch, ids |
| `decoder_start_token_id` or `bos_token_id` has to be… | validation | error | generation, encoder-decoder, decoder-start-token, config |
| `early_stopping` must be a boolean or 'never', but is | validation | error | python, transformers, generation, generation-config, validation |
| Expected config to be an OnnxConfig or dict, got | exception | error | export, onnx, type-error, config |
| Incorrect format used for `audio`. Should be a numpy array… | exception | error | deepgemm, bfloat16, moe, dtype |
| type of unknown: . Should be one of a python, numpy, or… | exception | error | feature-extractor, dtype, audio, transformers |
| Block size must be at least | validation | error | continuous-batching, kv-cache, block-size, flash-attention |
| `has_previous_state` can only be called on LinearAttention… | validation | error | cache, linear-attention, has-previous-state, valueerror |
| LocalLayerRepository requires `kernels` to be installed… | exception | error | dependencies, kernels, local-kernels, offline |
| `skip` must contain only strings. | exception | error | heterogeneity, config, type-validation, per-layer |
| Attempting to cast a BatchFeature to type | exception | error | feature-extractor, batchfeature, dtype, device, transformers |
| Distributed is off but received | validation | error | distributed, device-mesh, configuration, continuous-batching |
| is not a valid auto class. | validation | error | config, auto-class, registration |
| `tiktoken` is required to read a `tiktoken` file. Install… | exception | error | dependencies, tiktoken, tokenizer, conversion |
| Unsupported quantization method | validation | error | serving, quantization, cli, validation, valueerror |
| Distributed checkpointing requires `torch>=2.7`. | exception | error | torch-version, fsdp, checkpointing, distributed |
| `nbits` for `quanto` backend has to be one of [`2`, `4`]… | validation | error | quantization, kv-cache, config, validation |
| TextDiffusionStreamer only supports batch size 1 | validation | error | streamer, text-diffusion, batch-size, generation |
| Weight conversions (e.g., MoE expert fusion) with DeepSpeed… | exception | error | |
| is not a value that can be converted to a bool. | validation | error | cli, user-input, bool-parsing, valueerror, developer-tooling |
| Input image must be of type np.ndarray, got | validation | error | image-processing, numpy, typeerror, channel-dimension |
| Invalid COCO panoptic annotations. Annotations must a dict… | validation | error | |
| Model must have 'config', 'device', and 'dtype' attributes. | validation | error | api-misuse, attributes, continuous-batching, model |
| `nbits` for `HQQ` backend has to be one of [`1`, `2`, `3`… | validation | error | quantization, kv-cache, config, validation |
| `assistant_ensemble_weight` must be in the open interval… | validation | error | python, transformers, generation, speculative-decoding, generation-config |
| `forced_decoder_ids` is deprecated in favor of `task` and… | validation | error | |
| DeepGEMM experts selected on a model spanning multiple CUDA… | exception | error | |
| `num_return_sequences | validation | error | generation, beam-search, generation-config, validation |
| save_pretrained(..., distributed_checkpoint=True) requires… | exception | error | torch-version, distributed, checkpointing, environment |
| Unsupported input type | validation | error | object-detection, bounding-boxes, typeerror, valueerror |
| Input length of is , but `max_length` is set to . This can… | validation | error | generation, max-length, truncation, context-length |
| Found 'return_loss=True' in inputs. Loss computation is not… | exception | error | export, inputs, loss, transformers |
| frame_length ( ) may not be larger than fft_length ( ) | exception | error | audio, stft, argument-validation |
| is an abstract class. Only classes inheriting this class… | exception | error | python, transformers, generation, assisted-decoding, abstract-class |
| num_return_sequences has to be 1 when doing assisted… | validation | error | generation, assisted-decoding, num-return-sequences, incompatible-arguments |
| Cannot use log_mel option | exception | error | audio, mel-spectrogram, argument-validation |
| cpu_offload_space=None requires psutil to auto-size the CPU… | exception | error | dependencies, psutil, offloading, continuous-batching |
| `num_head` was provided as a list of length | validation | error | cache, early-initialization, export, shape-mismatch, valueerror |
| is an abstract class. Only classes inheriting this class… | exception | error | python, transformers, generation, assisted-decoding, abstract-class |
| `eta_cutoff` has to be a float > 0 and < 1, but is | validation | error | generation, eta-sampling, cutoff, argument-validation |
| `model_outputs` cannot be None, and they need to contain… | exception | error | python, transformers, generation, speculative-decoding, gemma4, hidden-states |
| Provided path ( ) should be a directory, not a file | exception | error | generation-config, save, filesystem, path |
| FSDP is not compatible with continuous batching but got | validation | error | distributed, fsdp, compatibility, continuous-batching |
| register_kernel_mapping_transformers requires `kernels` to… | exception | error | dependencies, kernels, kernel-mapping, startup |
| Require min_frequency | exception | error | audio, mel-spectrogram, argument-validation |
| ` ` has to be a positive integer, but is | validation | error | validation, logits-processor, types, error-message |
| Invalid COCO detection annotations. Annotations must a dict… | validation | error | |
| return_tensors should be `'pt'` or `None` | validation | error | api-misuse, validation, tensors |
| `top_h` must be in the range (0, 1]. | validation | error | generation, top-h, entropy-sampling, argument-validation |
| `streamer` cannot be used with beam search (yet!). Make… | validation | error | generation, streamer, beam-search, incompatible-arguments |
| `guidance_top_k` has to be a strictly positive integer if… | validation | error | classifier-free-guidance, top-k, generation, config-validation |
| TextStreamer only supports batch size 1 | validation | error | streamer, batch-size, generation, text-streaming |
| max_size = must be strictly greater than the requested size… | validation | error | image-processing, resize, config, valueerror |
| `min_p` has to be a float in the [0, 1] interval, but is | validation | error | generation, min-p, sampling, argument-validation |
| Expected config to be a DynamoConfig or dict, got | exception | error | export, dynamo, type-error, config |
| register_kernel_mapping requires `kernels` to be installed… | exception | error | dependencies, kernels, kernel-mapping |
| export_config_dict must contain key 'export_format' set to… | exception | error | export, config, validation |
| can't derive true or false from | validation | error | config, update-from-string, boolean-parsing |
| `num_hidden_layers` ( ) must be equal to the number of… | exception | error | config, layer-types, validation, deprecated |
| Asking to pad but the feature_extractor does not have a… | exception | error | feature-extractor, padding, config, transformers |