Downloads · 30 days
15
5% of all-time downloads
McGill-NLP/longcot-24k-1.5b
longcot-24k-1.5b is a machine learning model from McGill-NLP. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
<p align="center" <img src="./method.png" width=100%/ </p
Downloads · 30 days
15
5% of all-time downloads
All-time downloads
295
Public
Parameters
1.8B
7.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors7.1 GB · 100%
From the Hugging Face model README
deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B, trained with the Delethink RL paradigm. See the paper for full details.deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B\boxed{}.import asyncio
import sglang as sgl
def main():
llm = sgl.Engine(
model_path="McGill-NLP/longcot-24k-1.5b",
dtype="bfloat16",
attention_backend="flashinfer",
mem_fraction_static=0.8,
log_level="WARNING",
)
prompt = (
r"There exist real numbers $x$ and $y$, both greater than 1, such that "
r"$\log_x\left(y^x\right)=\log_y\left(x^{4y}\right)=10$. Find $xy$."
"\n\nPlease reason step by step, and put your final answer within \\boxed{}."
)
tok = llm.tokenizer_manager.tokenizer
query_ids = tok.apply_chat_template(
[{"role": "user", "content": prompt}],
tokenize=True,
add_generation_prompt=True,
)
params = {"temperature": 0.6, "max_new_tokens": 24576}
ids = llm.generate(input_ids=query_ids, sampling_params=params, return_logprob=True)
print(tok.decode(ids, skip_special_tokens=False))
if __name__ == "__main__":
main()
@misc{Aghajohari2025:TheMarkovianThinker,
title={The Markovian Thinker},
author={Milad Aghajohari and Kamran Chitsaz and Amirhossein Kazemnejad and
Sarath Chandar and Alessandro Sordoni and Aaron Courville and Siva Reddy},
year={2025},
eprint={...},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={...},
}