You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Status:Not started — comment here before beginning work.
Family:families/distilbert/ Current declared task mode(s):embedding, encoding, reranking Target semantic Task(s): Identify the existing semantic Task contract(s) that preserve every current capability; record the exact IDs in the PR.
Related family CLI work: #1377. It is a separate change and does not complete this Task migration.
Work
Inventory this family's primary and secondary behavior, including batch, streaming, raw outputs and stateful operations where supported. Record the current defaults, profiles, checkpoint cases, and reference criteria.
Implement and bind the matching semantic Task interface(s) in this family's runtime. Preserve its graph, preprocessing, inference, postprocessing, configuration and complete owned results.
Align family-owned support, build metadata and manifests with the primary Task. Advertise only interfaces implemented by the loaded bundle; document whether existing bundles need rebuilding.
Add family-owned CPU contracts and public C/C++ SDK consumers. Cover invalid inputs, configuration handling, result lifetime and every relevant lifecycle.
Run a selected real checkpoint E2E with the existing oracle and thresholds, then check the remaining declared capabilities and public CLI, example and benchmark paths. Preserve meaningful passing criteria.
PR evidence
Link the migration PR here. Report the tested revision, exact commands and results, selected checkpoint cases, original reference checks, current-head CI, and any untested configurations. Keep a normal migration within families/distilbert/**; raise a separate linked prerequisite issue if a shared contract is genuinely missing. Do not weaken an acceptance criterion to pass CI.
I'd like to work on this, under parent epic #1430.
Scope understanding:
Family: families/distilbert/, currently declaring three legacy tasks: embedding, encoding, reranking (default encoding), via the shared EncoderPipeline class also used nearly verbatim by several sibling families.
Mapping to the semantic Task SDK (feat(api): add semantic Task C ABI and C++ SDK #1226): embedding -> text_to_embedding, encoding -> text_to_pooled_features, reranking -> text_pair_to_relevance (plus text_query_documents_to_relevance to preserve the existing rerank_batch secondary capability, since the old IReranking interface required it).
The migration stays inside families/distilbert/**. The public C/C++ SDK and the native CLI's generic Task dispatch (apps/cli/sdk_features.cpp) already fully support all of these Task IDs, including routing the existing encode/embed/rerank CLI commands to them once the bundle declares the new primary task — no shared/core changes are needed.
Only the encoding capability has an existing checkpoint case/manifest/E2E oracle today; embedding and reranking are supported code paths with no existing test coverage for this specific family, which I'll preserve as-is.
I'm starting work on this now and will post the exact Task mapping and evidence in the PR.
The distilbert migration to the semantic Task SDK was merged in #1581. distilbert now binds its capabilities through semantic Tasks on main, so I'm closing this issue as completed. Thanks to everyone who contributed!
Activity
jkzhang7 commentedon Oct 3, 2026
I'd like to work on this, under parent epic #1430.
Scope understanding:
families/distilbert/, currently declaring three legacy tasks:embedding,encoding,reranking(defaultencoding), via the sharedEncoderPipelineclass also used nearly verbatim by several sibling families.embedding->text_to_embedding,encoding->text_to_pooled_features,reranking->text_pair_to_relevance(plustext_query_documents_to_relevanceto preserve the existingrerank_batchsecondary capability, since the oldIRerankinginterface required it).families/distilbert/**. The public C/C++ SDK and the native CLI's generic Task dispatch (apps/cli/sdk_features.cpp) already fully support all of these Task IDs, including routing the existingencode/embed/rerankCLI commands to them once the bundle declares the new primary task — no shared/core changes are needed.encodingcapability has an existing checkpoint case/manifest/E2E oracle today;embeddingandrerankingare supported code paths with no existing test coverage for this specific family, which I'll preserve as-is.I'm starting work on this now and will post the exact Task mapping and evidence in the PR.
jkzhang7 commentedon Oct 3, 2026
Opened #1581
refactor(distilbert): migrate to Task SDK
refactor(distilbert): migrate to Task SDK (#1581)
xuanzic commentedon Nov 4, 2026
The
distilbertmigration to the semantic Task SDK was merged in #1581.distilbertnow binds its capabilities through semantic Tasks onmain, so I'm closing this issue as completed. Thanks to everyone who contributed!