Eklav trains a model to pick up a teacher's reasoning mid thought rather than imitate it end to end. The student sees a partial reasoning trace from the teacher, with the answer revealing tail removed, and learns to continue reasoning and produce the answer on its own. The model's own reasoning is conditioned on the teacher's partial trace during training rather than trained to reproduce it word for word. Same base model, same training data as standard full trace CoT distillation, only the training objective changes.
Highlights
Standard full trace CoT SFT baseline used to measure Eklav's improvement at this scale
nDCG@10 on BRIGHT, single evaluation run per domain.
Use as a reranker
This is a pointwise reranker, the same style as Rank1
(
jhu-clsp/rank1-7b
, which this
checkpoint's training recipe reproduces): the model generates a reasoning
trace ending in
</think> true
or
</think> false
, and relevance is scored
from the logits at that final token rather than by parsing generated text,
which avoids depending on the model reliably stopping on its own. This
checkpoint can generate a long reasoning trace before reaching
</think>
, so
use vLLM with a stop string rather than a fixed
transformers.generate
token
budget, the same setup Rank1's own card recommends and the one used to
produce the results on this page.
from vllm import LLM, SamplingParams
import math
model_id = "AdarshSingh7647/Eklav-8B-Reranker-CotGen"
model = LLM(model=model_id, max_model_len=16000)
tokenizer = model.get_tokenizer()
defcreate_prompt(query: str, passage: str) -> str:
return (
"Determine if the following passage is relevant to the query. ""Answer only with 'true' or 'false'.\n"f"Query: {query}\n"f"Passage: {passage}\n<think>"
)
sampling_params = SamplingParams(
temperature=0,
max_tokens=8192,
logprobs=20,
stop=["</think> true", "</think> false"],
)
defscore(query: str, passage: str) -> float:
prompt = create_prompt(query, passage)
output = model.generate([prompt], sampling_params)[0].outputs[0]
# the answer token is usually the second to last logprob step (vLLM's stop# string match can consume one extra token, e.g. <|im_end|>, after it), but# scan from the end so this is robust to that off by onefor step inreversed(output.logprobs or []):
true_lp = next((v.logprob for k, v in step.items() if tokenizer.decode([k]).strip().lower() == "true"), None)
false_lp = next((v.logprob for k, v in step.items() if tokenizer.decode([k]).strip().lower() == "false"), None)
if true_lp isnotNoneand false_lp isnotNone:
true_score, false_score = math.exp(true_lp), math.exp(false_lp)
return true_score / (true_score + false_score)
return0.5
query = "What causes seasons on Earth?"
passages = [
"Seasons are caused by the tilt of Earth's axis relative to its orbit around the Sun.",
"The Great Wall of China is visible from space, according to popular belief.",
]
ranked = sorted(passages, key=lambda p: score(query, p), reverse=True)
for p in ranked:
print(p)
We tested a plain
transformers.generate
loop with a fixed token budget on
this checkpoint and saw it occasionally run past a few hundred tokens without
closing
</think>
, degenerating into repetition instead of answering, so we
recommend the stop-string based vLLM setup above rather than a fixed
max_new_tokens
cutoff.
Runs of AdarshSingh7647 Eklav-8B-Reranker-CotGen on huggingface.co
1.4K
Total runs
72
24-hour runs
258
3-day runs
494
7-day runs
912
30-day runs
More Information About Eklav-8B-Reranker-CotGen huggingface.co Model
Eklav-8B-Reranker-CotGen huggingface.co
Eklav-8B-Reranker-CotGen huggingface.co is an AI model on huggingface.co that provides Eklav-8B-Reranker-CotGen's model effect (), which can be used instantly with this AdarshSingh7647 Eklav-8B-Reranker-CotGen model. huggingface.co supports a free trial of the Eklav-8B-Reranker-CotGen model, and also provides paid use of the Eklav-8B-Reranker-CotGen. Support call Eklav-8B-Reranker-CotGen model through api, including Node.js, Python, http.
Eklav-8B-Reranker-CotGen huggingface.co is an online trial and call api platform, which integrates Eklav-8B-Reranker-CotGen's modeling effects, including api services, and provides a free online trial of Eklav-8B-Reranker-CotGen, you can try Eklav-8B-Reranker-CotGen online for free by clicking the link below.
AdarshSingh7647 Eklav-8B-Reranker-CotGen online free url in huggingface.co:
Eklav-8B-Reranker-CotGen is an open source model from GitHub that offers a free installation service, and any user can find Eklav-8B-Reranker-CotGen on GitHub to install. At the same time, huggingface.co provides the effect of Eklav-8B-Reranker-CotGen install, users can directly use Eklav-8B-Reranker-CotGen installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Eklav-8B-Reranker-CotGen install url in huggingface.co: