Skip to content

fix(deps): update rust crate fastembed to v7 - #23

Open
renovate-appwrite[bot] wants to merge 1 commit into
masterfrom
renovate/fastembed-7.x
Open

renovate-appwrite[bot] wants to merge 1 commit into
masterfrom
renovate/fastembed-7.x

Conversation

@renovate-appwrite

@renovate-appwrite renovate-appwrite Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change Pending
fastembed (source) dependencies major 5.15.0 → 7.0.0 7.8.0

Release Notes

Anush008/fastembed-rs (fastembed)

v7.7.1

Compare 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 LockAcquisition error after five seconds (#​203).

16 loads at once, empty cache 7.7.0 This release
Loads that succeed 6 or 7 16

A load also waits through a pause of up to one minute in the download.

🧠 BertTextEmbedding gives correct vectors for RoBERTa models

RoBERTa, 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-uncased and other checkpoints with gamma and beta LayerNorm names now load.

📏 Half-precision Nomic vectors have unit length

NomicV2MoeTextEmbedding with DType::F16 or DType::BF16 weights returned vectors with norms up to 1.09. The norms are now 1.

🖼️ Images fail safely
  • An image with no pixels returns an error.
  • A resize that needs a buffer above 512 MiB returns an error. In 7.7.0, a small file with an extreme aspect ratio could end the process. A resizer set with with_resize has no limit.
  • ImageEmbedding::embed reads an image whose file extension names the wrong format.
  • embed and embed_bytes hold one decoded image at a time, instead of the whole batch.
🧮 TextEmbedding::embed uses less memory

Each batch is pooled before the next one runs, so batch_size now limits the memory in use.

More fixes

ONNX models
  • Errors replace panics for: a max_length below the special-token count, a model output with no tokens, reranker logits of an unexpected shape, and a missing ONNX Runtime library with ort-load-dynamic.
  • TextRerank::rerank and similarity::top_k rank a NaN score last. top_k keeps equal scores in corpus order, and 0.0 and -0.0 count as equal.
  • SparseTextEmbedding keeps a positive weight for a small positive logit.
  • TextEmbedding::list_supported_models returns the models in table order.
  • A lower-case form of a special token in a text, such as [sep], is tokenized as ordinary text.
  • EmbeddingGemma300MQ is batched by batch_size, like the other EmbeddingGemma variants.
  • A user-defined preprocessor_config.json gets the resize filter that its resample value names.
  • ExternalInitializerFile is exported from the crate root.
Qwen3 and Qwen3-VL
  • Qwen/Qwen3-VL-Embedding-8B loads, and so do configs written by transformers 5.
  • Qwen3VLEmbedding::embed_images runs with DType::BF16 weights on the CPU.
  • The Qwen3-VL patch merger uses exact GELU, as the reference model does.
  • Qwen3TextEmbedding::new gives correct vectors for a tokenizer that pads on the right.
  • The prompt of an image at the token limit is no longer cut.
Hugging Face Hub
  • A model loads in a process with no home directory.
  • With HF_HOME set, the token saved by huggingface-cli login is used.
  • An empty HF_ENDPOINT means the default endpoint.
  • Download and parse errors name their cause.

Behavior to know before you upgrade

  • RoBERTa-family vectors change. If you stored vectors from BertTextEmbedding with a RoBERTa, XLM-RoBERTa, or CamemBERT checkpoint, embed those texts again.
  • Half-precision Nomic vectors change length. Their direction stays the same within rounding.
  • The default resizer has a 512 MiB limit for each buffer. An image must be about 150,000 pixels wide, or have an aspect ratio above about 3,500 to 1, to reach it.
  • get_quantization_mode returns Static for EmbeddingGemma300MQ.

CI/CD

  • Releases publish to crates.io with trusted publishing.

Full Changelog: anush008/fastembed-rs@v7.7.0...v7.7.1

v7.7.0

Compare Source

🍕 Features

v7.6.1

Compare Source

🐛 Bug Fixes

v7.6.0

Compare Source

🍕 Features
🧹 Chores

v7.5.0

Compare Source

🍕 Features

v7.4.1

Compare Source

🐛 Bug Fixes

v7.4.0

Compare Source

🍕 Features
🐛 Bug Fixes
🧹 Chores

v7.3.2

Compare Source

🐛 Bug Fixes

v7.3.1

Compare Source

🧹 Chores

v7.3.0

Compare Source

🍕 Features

v7.2.0

Compare Source

🍕 Features
🚀 Performance

v7.1.6

Compare Source

🚀 Performance

v7.1.5

Compare Source

🚀 Performance

v7.1.4

Compare Source

🚀 Performance

v7.1.3

Compare Source

🚀 Performance

v7.1.2

Compare Source

🧹 Chores

v7.1.1

Compare Source

🧹 Chores

v7.1.0

Compare Source

🍕 Features
🧹 Chores

v7.0.1

Compare Source

v7.0.0

Compare Source

⚠ BREAKING changes

  • UserDefinedSparseModel::new takes the SparseModel family as a third argument: new(onnx_file, tokenizer_files, model).
  • Image embeddings for non-square inputs differ from earlier releases across all image models.
  • Qwen3-VL image embeddings differ from 5.16.1 through 6.1.0.
  • The candle models (Qwen3TextEmbedding, Qwen3VLEmbedding, NomicV2MoeTextEmbedding) now cache under FASTEMBED_CACHE_DIR (default .fastembed_cache) instead of ~/.cache/huggingface/hub. Existing weights are re-downloaded unless HF_HOME is set.
  • fastembed::InitOptions is a deprecated alias of TextInitOptions and now emits a warning.

Bug fixes

  • Qwen3-VL: restore per-token MRoPE frequencies, with a regression test.
  • Image preprocessing: aspect-preserving shortest_edge resize, correct width/height order for exact sizes, and CHW layout for padded center crops.
  • Sparse models return Error::OutputKeyMissing instead of panicking when the expected output tensor is missing.
  • Nomic v2 MoE runs in F16 and BF16.
  • BGE-M3 try_new_from_user_defined and try_new_from_path apply disable_cpu_fallback and dimension_overrides. try_new_from_path accepts either a directory or the .onnx file.
  • Tokenizer loading accepts pad_token as an AddedToken object and resolves the pad id from the vocabulary when config.json has no pad_token_id.
  • Broken rustdoc links fixed.

Hugging Face access

  • HF_TOKEN, or the huggingface-cli login token, is sent with every request.
  • The candle models honour FASTEMBED_CACHE_DIR, HF_HOME, HF_ENDPOINT and HF_TOKEN like the ONNX models, and resolve sharded checkpoints through model.safetensors.index.json.

API additions

  • SparseTextEmbedding::try_new_from_user_defined, plus UserDefinedSparseModel::with_idf_file.
  • NomicBertModel is re-exported with a public constructor for loading local weights.

Performance

  • SPLADE post-processing max-pools in place instead of allocating two vocab-sized copies per batch.
  • Tokenization and input building share one code path across text, sparse, BGE-M3 and rerank.

Toolchain

  • Minimum supported Rust version is declared as 1.88.
  • CI lints all targets with the hf-hub feature, compiles the doctests, and builds docs with warnings denied.
  • Dependabot now tracks GitHub Actions.

v6.1.0

Compare Source

🍕 Features

v6.0.3

Compare Source

🧹 Chores

v6.0.2

Compare Source

🧹 Chores

v6.0.1

Compare Source

🧹 Chores

v6.0.0

Compare Source

BREAKING ⛓️‍💥

fastembed::Error has changed from a anyhow::Error type alias to an error enum - #​278.

Documentation 📖

Full Changelog: anush008/fastembed-rs@v5.17.4...v6.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Monday (* * * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@appwrite

appwrite Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
34d6034 Reviewed Reviewed 🟡 B · Needs changes before merging 🛑 Changes requested View review

The fastembed upgrade makes the existing deprecated InitOptions use fail compilation under the repository's warnings-as-errors CI configuration.

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.

Findings (1)
Finding Where
🟠 fastembed 7.1.1 deprecates InitOptions, failing CI Cargo.lock:696
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)
File Change
Cargo.toml Bumps the fastembed dependency requirement to 7.0.0.
Cargo.lock Resolves fastembed to 7.1.1 and updates its tokenizer-related dependency graph.

Reviewed 34d6034

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Tier B · 1 blocking finding to address. Summary

Comment thread Cargo.lock
[[package]]
name = "fastembed"
version = "5.17.4"
version = "7.1.1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

Copy link
Copy Markdown

Memory benchmark

Base 213a7fa vs head 34d6034 on ubuntu-latest.

Model nomic, EMBEDDING_POOL_SIZE=1, 12 requests of 16 texts (100 to 1,800 words), median of 2 runs. Retained is RSS 3s after the last request.

Concurrent requests Peak (base) Peak (head) Δ Retained (base) Retained (head) Δ Time (base) Time (head)
1 5215 MB 5214 MB -0% 588 MB 590 MB +0% 578.1s 581.2s
4 5218 MB 5225 MB +0% 591 MB 592 MB +0% 580.3s 581.4s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants