How models are made training pipeline · stage 9
Task models: embedding, reranking, OCR and ASRpractitioner-perspective methodology · key facts carry official sources
Distinguish four task contracts by input, output, runtime and acceptance; record platform/format compatibility by layer, retain untested combinations as unknown, and follow practice and troubleshooting links.
Start with input and output
Chat generation, embedding, reranking, document recognition and speech recognition expose different interfaces. Define input, output and acceptance checks before choosing a model. The four cards below illustrate contracts; they are not a ranking, exhaustive catalogue or deployment recommendation. No weights were downloaded or executed here. The 2026-11-04 check covers official model-card examples and limitations.
Check platform support by model version, library version, hardware backend and task together. A Python example does not establish Windows, macOS or every Linux GPU combination. Those environments were not installed here; unverified platforms remain unknown.
For input/output concepts, start with speech recognition to distinguish audio transcription from text generation, then return to the task contract.
Embedding: text to retrieval representations
Interface example: BAAI/bge-m3. Its card shows text encoding and multiple retrieval representations. This section concerns text retrieval, not direct audio or scan input.
- Input: query/document text with chunk IDs, version and source.
- Output: representations for the chosen mode, not a natural-language answer. Record dimensions, normalization, query/document processing and model revision.
- Runtime: follow the card’s FlagEmbedding or listed library examples; do not assume modes are interchangeable.
- Acceptance: use fixed queries and located relevant passages to inspect recall and misses. Dimensions or leaderboard position alone are insufficient. Check reindexing requirements when changing models; never mix incompatible embeddings into the old index.
- Unknown here: exact OS, CPU/GPU backend, quantization format and real long-input allocation.
Continue with choosing embeddings. Check retrieval and generation separately when a relevant source is found but the answer is wrong.
Reranking: scoring query–candidate pairs
Interface example: BAAI/bge-reranker-v2-m3. Official examples score query/candidate text pairs, rather than rebuilding corpus embeddings.
- Input: one query paired with retrieved passages, retaining candidate IDs and original order.
- Output: scores and reordered candidates. Scores are not factual accuracy, and different models do not share a guaranteed scale.
- Runtime: the card lists FlagReranker and Transformers usage. Check paired input, truncation and score interpretation.
- Acceptance: first establish whether the right passage reached the candidate set; reranking cannot recover an absent candidate in that pass. Compare evidence-backed relevance judgements, recording answer support separately.
- Unknown here: platform backends, serving concurrency and compatibility with a particular local chat runner.
Read reranking retrieved results. Reranking is optional when existing candidates suffice; it is not a mandatory RAG stage.
OCR and layout: images to located content
Interface example: PaddlePaddle/PaddleOCR-VL. The card provides a document-image pipeline with JSON/Markdown export. A parsing pipeline and one model call are different layers; a weight format alone does not establish the complete workflow.
- Input: original page images and the parsing task; evaluate direct extraction when a PDF has usable text.
- Output: text, structure or layout according to the selected pipeline version, not a verified business table.
- Runtime: follow linked PaddleOCR-VL installation guidance for pipeline, dependencies, backend and versions. Distinguish this card from subsequent releases.
- Acceptance: retain page/region evidence and check reading order, headers, wrapped rows, blanks, leading zeros and numbers. Recalculate money separately.
- Unknown here: Windows/macOS support, exact GPU, GGUF availability and scan accuracy; no pipeline was installed.
Practice with the fictional PDF-to-table task. Its designed reference CSV must not be attributed to this model.
ASR: audio to transcript
Interface example: openai/whisper-large-v3. The card describes recognition/translation, Transformers usage and transcription limitations.
- Input: audio plus language/task settings. Follow pipeline decoding/resampling requirements; renaming an extension does not convert audio.
- Output: transcription or requested translation; check timestamp settings separately. Transcription does not automatically supply speaker diarization, meeting decisions or actions.
- Runtime: verify processor, loading and audio pipeline against the card. No arbitrary third-party client or quantization repo is established as a replacement here.
- Acceptance: replay names, numbers, negation, silence and conditions; generative transcription can add unspoken text. Check proposals/decisions and owners in notes separately.
- Unknown here: ASR runs, multi-speaker separation and platform-specific latency/memory were not tested.
Try the synthetic-meeting task. One voice reads role labels; it cannot establish diarization quality.
A compatibility record: verify each layer
For each candidate record model repository and pinned revision, task entry point, preprocessor/tokenizer, output format, weight format/precision, library/runtime version, OS, CPU/GPU/driver backend, required custom code, licence source, check scope and unknowns.
- safetensors stores weights; its presence alone does not establish architecture, task contract or hardware support.
- A GGUF file does not establish support in every GGUF runner for its architecture, processor and task. Seek an explicit model/task/version statement; retain unknowns otherwise.
- An OpenAI-style interface or shared extension is not behavioral equivalence. Check embedding, scoring, recognition and chat requests/responses separately.
- Treat required repository code as a separate versioned dependency to review; do not enable remote code blindly to suppress errors.
The cards show different library examples. This guide does not invent an all-platform compatibility matrix. Combinations without installation checks must not be called tested-compatible.
Follow the failure rather than swapping blindly
- Dimension/index mismatch: inspect embedding revision, mode and index metadata, then tool-input troubleshooting.
- Retrieval miss: inspect corpus, chunks, filters and query, then retrieval troubleshooting.
- Unreadable image/audio: start with file troubleshooting.
- Memory exhaustion: use the context/concurrency budget after confirming scope. Do not apply a decoder KV formula universally to encoders or image/audio pipelines.
Record input, environment versions, output and evidence; change one condition before rechecking. Never present a model-card demonstration as your own execution record.
Sources
- BAAI: bge-m3 official model card:https://huggingface.co/BAAI/bge-m3
- BAAI: bge-reranker-v2-m3 official model card:https://huggingface.co/BAAI/bge-reranker-v2-m3
- PaddlePaddle: PaddleOCR-VL official model card:https://huggingface.co/PaddlePaddle/PaddleOCR-VL
- OpenAI: Whisper large-v3 official model card:https://huggingface.co/openai/whisper-large-v3
- Hugging Face: Safetensors format documentation:https://huggingface.co/docs/safetensors/index
- GGML: GGUF format specification:https://github.com/ggml-org/ggml/blob/master/docs/gguf.md
Base source snapshot: 2026-11-04; item-specific additions and check scope appear in the text and source labels. Check original specifications, methods and conditions.
This page appears in: Make music with AI