Add tier-1 BEI-torch example templates - #584
Open
bohanyao-baseten wants to merge 1 commit into
Open
Conversation
Three hand-written templates for `base_model: encoder_torch` (BEI-torch backend). Lives in a new `11-embeddings-reranker- classification-torch/` directory mirroring the existing `-tensorrt/` layout. - BEI-torch-nvidia-Nemotron-3-Embed-8B-bf16 (H100) - BEI-torch-nvidia-Nemotron-3-Embed-1B-bf16 (L4) - BEI-torch-nvidia-llama-nemotron-rerank-1b-v2 (L4) Each README documents the three-JSON-patch workaround for the stock NVIDIA repos (transformers-incompatible tokenizer_class, extra_special_tokens list, unregistered `llama_bidirec` model_type) until BEI-torch lands the serde alias and tokenizer-config fallback. Not yet wired into `generate_templates.py` — follow-up work to add a `BEI_TORCH` `Solution` class before tier-2/3. Paired with: - basetenlabs/truss#2592 - basetenlabs/baseten#25084 Plan: https://app.notion.com/p/3ae91d24727381d5902de1d02944ead4 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
bohanyao-baseten
force-pushed
the
encoder-torch-templates
branch
from
August 4, 2026 21:58
828fb03 to
7be48e4
Compare
|
|
bohanyao-baseten
force-pushed
the
encoder-torch-templates
branch
from
August 4, 2026 22:19
7be48e4 to
828fb03
Compare
bohanyao-baseten
marked this pull request as ready for review
August 5, 2026 21:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three tier-1 truss templates for
base_model: encoder_torch(BEI-torch backend), in a new11-embeddings-reranker-classification-torch/directory mirroring the existing-tensorrt/layout:BEI-torch-nvidia-Nemotron-3-Embed-8B-bf16(H100)BEI-torch-nvidia-Nemotron-3-Embed-1B-bf16(L4)BEI-torch-nvidia-llama-nemotron-rerank-1b-v2(L4)Paired with basetenlabs/truss#2592 and basetenlabs/baseten#25084.
Plan: https://app.notion.com/p/3ae91d24727381d5902de1d02944ead4
Notes
../11-embeddings-reranker-classification-tensorrt/templating/generate_templates.py. ABEI_TORCHSolutionclass needs to land there before tier-2/3 templates get added. Flagged as follow-up.tokenizer_class: "TokenizersBackend", list-formextra_special_tokens, unregisteredmodel_type: "llama_bidirec") until BEI-torch lands the serde alias + tokenizer-config fallback upstream. Customers point at a forked repo with those patches for now.Test plan
BEI_TORCH_IMAGE_URIconstance to be set to a real tag.truss push --publishagainst a patched HF fork, confirmMODEL_READY, check/v1/embeddings(or/rerank) returns valid outputs, run a cosine-similarity spot-check against a vLLM reference.🤖 Generated with Claude Code