Fine-tuning microsoft/harrier-oss-v1-270m with SentenceTransformerTrainer — is it supported? Microsoft's harrier-oss-v1-270m sentence-transformers model can be fine-tuned with SentenceTransformerTrainer and MultipleNegativesRankingLoss for Portuguese QA retrieval, though no public example combines that exact stack, according to a technical analysis of the model card. The model card states Harrier uses a decoder-only architecture, last-token pooling and L2-normalized embeddings, and that query instructions are part of training so omitting them degrades performance while document-side instructions are not needed. The recommended setup applies the instruction prefix to the query/anchor side during training and keeps documents unprompted to avoid a train/inference mismatch. Seems practically supported? microsoft/harrier-oss-v1-270m with SentenceTransformerTrainer Yes — this should be a supported and reasonable setup , with one important caveat: I have not found a public example that exactly combines: microsoft/harrier-oss-v1-270m + SentenceTransformerTrainer + MultipleNegativesRankingLoss + Portuguese QA retrieval However, the evidence strongly points to this being a valid path: - microsoft/harrier-oss-v1-270m https://huggingface.co/microsoft/harrier-oss-v1-270m is packaged as a sentence-transformers model and can be loaded with SentenceTransformer "microsoft/harrier-oss-v1-270m" . - The model card explicitly shows Sentence Transformers usage and encodes queries with a prompt while encoding documents without a prompt . - The model card says Harrier uses a decoder-only architecture , last-token pooling , and L2-normalized embeddings . - The model card also says query instructions are how the model is trained and that omitting them can degrade performance; document-side instructions are not needed. - SentenceTransformerTrainingArguments https://sbert.net/docs/package reference/sentence transformer/training args.html supports training-time prompts , including column-specific prompt mappings. - MultipleNegativesRankingLoss https://sbert.net/docs/package reference/sentence transformer/losses.html multiple-negativesrankingloss is the standard Sentence Transformers loss for positive query, document / anchor, positive retrieval pairs. - Nearby public examples exist, especially a Harrier-family Vietnamese legal retrieval model using Sentence Transformers + MNRL, and SkillRet-style decoder-embedding fine-tuning using query instructions and unprompted documents. My recommendation is: training query / anchor: Instruct: ...\nQuery: