Jan-Nano-128k represents a significant advancement in compact language models for research applications. Building upon the success of Jan-Nano, this enhanced version features a native 128k context window that enables deeper, more comprehensive research capabilities without the performance degradation typically associated with context extension methods.
Key Improvements:
๐ Research Deeper: Extended context allows for processing entire research papers, lengthy documents, and complex multi-turn conversations
โก Native 128k Window: Built from the ground up to handle long contexts efficiently, maintaining performance across the full context range
๐ Enhanced Performance: Unlike traditional context extension methods, Jan-Nano-128k shows improved performance with longer contexts
This model maintains full compatibility with Model Context Protocol (MCP) servers while dramatically expanding the scope of research tasks it can handle in a single session.
Jan-Nano-128k has been rigorously evaluated on the SimpleQA benchmark using our MCP-based methodology, demonstrating superior performance compared to its predecessor:
Traditional approaches to extending context length, such as YaRN (Yet another RoPE extensioN), often result in performance degradation as context length increases. Jan-Nano-128k breaks this paradigm:
This fundamental difference makes Jan-Nano-128k ideal for research applications requiring deep document analysis, multi-document synthesis, and complex reasoning over large information sets.
import os
os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com"
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Menlo/Jan-nano-128k", revision="f731a56fcc3c643735336d5af066d11bb469d55b")
model = AutoModelForCausalLM.from_pretrained("Menlo/Jan-nano-128k", revision="f731a56fcc3c643735336d5af066d11bb469d55b", device_map="auto")