Views
No views yet
Qwen/Qwen3-Embedding-0.6B, prepared for the CCIR LRAT competition.Given a web search query, retrieve relevant passages that answer the queryreweight_rate values with cross-device negatives.
The repository contains complete model parameters and does not require a LoRA
or adapter at inference time.1import torch
2import torch.nn.functional as F
3from transformers import AutoModel, AutoTokenizer
4
5model_id = "Seraphic663/lrat-qwen3-0.6b-2epoch-20260717"
6tokenizer = AutoTokenizer.from_pretrained(model_id, padding_side="left")
7model = AutoModel.from_pretrained(
8 model_id,
9 torch_dtype=torch.bfloat16,
10).cuda().eval()
11
12instruction = "Given a web search query, retrieve relevant passages that answer the query"
13texts = [f"Instruct: {instruction}\nQuery:example query", "example passage"]
14batch = tokenizer(
15 texts,
16 padding=True,
17 truncation=True,
18 max_length=512,
19 return_tensors="pt",
20).to("cuda")
21
22with torch.inference_mode():
23 output = model(**batch).last_hidden_state
24 embeddings = F.normalize(output[:, -1].float(), p=2, dim=1)1model.safetensors
22,383,139,480 bytes
3SHA-256 1075292002c27eee654f83e1d1d568a78d4cc9238bc48a36d4ceb5f35968e050