Repository navigation
fix(deps): update rust crate fastembed to v7 - #23
renovate-appwrite[bot] wants to merge 1 commit into
Conversation
Code review
This change upgrades fastembed from the 5.x line to 7.x and refreshes its resolved dependencies in Cargo.lock. The application continues to use fastembed's text embedding and model initialization APIs. Fix with agent prompt### Issue 1
Cargo.lock:696
**fastembed 7.1.1 deprecates InitOptions, failing CI**
This version deprecates `fastembed::InitOptions` and emits a warning, but `src/embedding.rs` imports and uses that alias. CI sets `RUSTFLAGS=-D warnings`, so the warning is denied and the build fails; switch the call site to `TextInitOptions`.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Walkthrough (2)
Reviewed Tip Comment |
| [[package]] | ||
| name = "fastembed" | ||
| version = "5.17.4" | ||
| version = "7.1.1" |
There was a problem hiding this comment.
fastembed 7.1.1 deprecates InitOptions, failing CI
This version deprecates fastembed::InitOptions and emits a warning, but src/embedding.rs imports and uses that alias. CI sets RUSTFLAGS=-D warnings, so the warning is denied and the build fails; switch the call site to TextInitOptions.
Prompt To Fix With AI
This is a comment left during a code review.
Path: Cargo.lock
Line: 696
Comment:
**fastembed 7.1.1 deprecates InitOptions, failing CI**
This version deprecates `fastembed::InitOptions` and emits a warning, but `src/embedding.rs` imports and uses that alias. CI sets `RUSTFLAGS=-D warnings`, so the warning is denied and the build fails; switch the call site to `TextInitOptions`.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟠 Major · bug · Reply if this doesn't apply.
Memory benchmarkBase Model
|

This PR contains the following updates:
5.15.0→7.0.07.8.0Release Notes
Anush008/fastembed-rs (fastembed)
v7.7.1Compare Source
fastembed 7.7.1: reliability release
This release hardens every model family. It has no new API and no API change. Models that gave correct vectors in 7.7.0 give the same vectors.
Highlights
🚦 Parallel model loads work on an empty cache
Start as many loads of one model as you want. One of them downloads, and the others wait and then read the cache. In 7.7.0, the others got a
LockAcquisitionerror after five seconds (#203).A load also waits through a pause of up to one minute in the download.
🧠
BertTextEmbeddinggives correct vectors for RoBERTa modelsRoBERTa, XLM-RoBERTa, and CamemBERT checkpoints now get the position ids of their architecture. In 7.7.0 they loaded and returned wrong vectors. The vectors now match transformers within 1.3e-6.
google-bert/bert-base-uncasedand other checkpoints withgammaandbetaLayerNorm names now load.📏 Half-precision Nomic vectors have unit length
NomicV2MoeTextEmbeddingwithDType::F16orDType::BF16weights returned vectors with norms up to 1.09. The norms are now 1.🖼️ Images fail safely
with_resizehas no limit.ImageEmbedding::embedreads an image whose file extension names the wrong format.embedandembed_byteshold one decoded image at a time, instead of the whole batch.🧮
TextEmbedding::embeduses less memoryEach batch is pooled before the next one runs, so
batch_sizenow limits the memory in use.More fixes
ONNX models
max_lengthbelow the special-token count, a model output with no tokens, reranker logits of an unexpected shape, and a missing ONNX Runtime library withort-load-dynamic.TextRerank::rerankandsimilarity::top_krank aNaNscore last.top_kkeeps equal scores in corpus order, and0.0and-0.0count as equal.SparseTextEmbeddingkeeps a positive weight for a small positive logit.TextEmbedding::list_supported_modelsreturns the models in table order.[sep], is tokenized as ordinary text.EmbeddingGemma300MQis batched bybatch_size, like the other EmbeddingGemma variants.preprocessor_config.jsongets the resize filter that itsresamplevalue names.ExternalInitializerFileis exported from the crate root.Qwen3 and Qwen3-VL
Qwen/Qwen3-VL-Embedding-8Bloads, and so do configs written by transformers 5.Qwen3VLEmbedding::embed_imagesruns withDType::BF16weights on the CPU.Qwen3TextEmbedding::newgives correct vectors for a tokenizer that pads on the right.Hugging Face Hub
HF_HOMEset, the token saved byhuggingface-cli loginis used.HF_ENDPOINTmeans the default endpoint.Behavior to know before you upgrade
BertTextEmbeddingwith a RoBERTa, XLM-RoBERTa, or CamemBERT checkpoint, embed those texts again.get_quantization_modereturnsStaticforEmbeddingGemma300MQ.CI/CD
Full Changelog: anush008/fastembed-rs@v7.7.0...v7.7.1
v7.7.0Compare Source
🍕 Features
v7.6.1Compare Source
🐛 Bug Fixes
v7.6.0Compare Source
🍕 Features
🧹 Chores
v7.5.0Compare Source
🍕 Features
v7.4.1Compare Source
🐛 Bug Fixes
v7.4.0Compare Source
🍕 Features
🐛 Bug Fixes
🧹 Chores
v7.3.2Compare Source
🐛 Bug Fixes
v7.3.1Compare Source
🧹 Chores
v7.3.0Compare Source
🍕 Features
v7.2.0Compare Source
🍕 Features
🚀 Performance
v7.1.6Compare Source
🚀 Performance
v7.1.5Compare Source
🚀 Performance
v7.1.4Compare Source
🚀 Performance
v7.1.3Compare Source
🚀 Performance
v7.1.2Compare Source
🧹 Chores
ortto 2.0.0-rc.15 (#316) (cfb11ea) - By @decahedron1v7.1.1Compare Source
🧹 Chores
v7.1.0Compare Source
🍕 Features
webgpu) feature-flag (#305) (6463f3f) - By @centuryofimage🧹 Chores
v7.0.1Compare Source
v7.0.0Compare Source
⚠ BREAKING changes
UserDefinedSparseModel::newtakes theSparseModelfamily as a third argument:new(onnx_file, tokenizer_files, model).Qwen3TextEmbedding,Qwen3VLEmbedding,NomicV2MoeTextEmbedding) now cache underFASTEMBED_CACHE_DIR(default.fastembed_cache) instead of~/.cache/huggingface/hub. Existing weights are re-downloaded unlessHF_HOMEis set.fastembed::InitOptionsis a deprecated alias ofTextInitOptionsand now emits a warning.Bug fixes
shortest_edgeresize, correct width/height order for exact sizes, and CHW layout for padded center crops.Error::OutputKeyMissinginstead of panicking when the expected output tensor is missing.try_new_from_user_definedandtry_new_from_pathapplydisable_cpu_fallbackanddimension_overrides.try_new_from_pathaccepts either a directory or the.onnxfile.pad_tokenas anAddedTokenobject and resolves the pad id from the vocabulary whenconfig.jsonhas nopad_token_id.Hugging Face access
HF_TOKEN, or thehuggingface-cli logintoken, is sent with every request.FASTEMBED_CACHE_DIR,HF_HOME,HF_ENDPOINTandHF_TOKENlike the ONNX models, and resolve sharded checkpoints throughmodel.safetensors.index.json.API additions
SparseTextEmbedding::try_new_from_user_defined, plusUserDefinedSparseModel::with_idf_file.NomicBertModelis re-exported with a public constructor for loading local weights.Performance
Toolchain
v6.1.0Compare Source
🍕 Features
v6.0.3Compare Source
🧹 Chores
v6.0.2Compare Source
🧹 Chores
v6.0.1Compare Source
🧹 Chores
v6.0.0Compare Source
BREAKING ⛓️💥
fastembed::Errorhas changed from aanyhow::Errortype alias to an error enum - #278.Documentation 📖
Full Changelog: anush008/fastembed-rs@v5.17.4...v6.0.0
Configuration
📅 Schedule: (UTC)
* * * * 1)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.