microsoft/ms_marco
Viewer • Updated • 1.11M • 22k • 244
How to use jg-eno/ReLoDer_v2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="jg-eno/ReLoDer_v2") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("jg-eno/ReLoDer_v2", dtype="auto")How to use jg-eno/ReLoDer_v2 with PEFT:
Task type is invalid.
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("jg-eno/ReLoDer_v2", dtype="auto")Reconstructs natural-language text from a sentence embedding alone — no access to the original text at inference time.
A set of per-position MLPs maps a single 1024-dim sentence embedding (from Qwen3-Embedding-0.6B) into a sequence of soft prefix tokens, which condition a LoRA-adapted Qwen3-0.6B decoder to regenerate semantically equivalent text.
Code: Semantic-Embedding-Reconstruction
Trained on passages from microsoft/ms_marco (v1.1 / v2.1), pre-encoded into sentence and token embeddings and published as jg-eno/msmarco-v5.1-Qwen-Embeddings.
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="jg-eno/ReLoDer_v2")