Lemur is a research project developed by XLang Lab, an academic research
laboratory affiliated with the University of Hong Kong (HKU). XLang Lab
focuses on the development of language model agents and executable language
grounding, working at the intersection of natural language processing,
code generation, and autonomous agent systems. The Lemur project represents
one of the lab's notable contributions to the open-source large language
model ecosystem, specifically targeting the balance between natural
language understanding and coding capabilities.
XLang Lab conducts research aimed at building language models and agents
that can interact with real-world environments, execute tasks, and reason
across both natural language and structured programmatic domains. The lab's
work is grounded in the belief that the next generation of language agents
must be able to seamlessly translate human intent into executable actions,
whether that means writing code, calling tools, or navigating digital
environments.
The Lemur Project
Lemur is a family of open, publicly accessible language models designed to
harmonize natural language and coding abilities. The central premise behind
Lemur is that effective language agents require a strong foundation in both
conversational, human-facing language skills and precise, machine-executable
coding skills. Many earlier open models excelled at one domain while being
comparatively weak in the other; Lemur was engineered to reduce this gap.
The project was introduced in a research paper titled "Lemur: Harmonizing
Natural Language and Code for Language Agents," which describes the
methodology behind training the models and evaluating them across a broad
suite of agent-oriented benchmarks.
Model Variants
The Lemur project released two primary model checkpoints:
Lemur-70B: A base model built by continuing pretraining on a large corpus
that carefully balances text and code data. This model provides strong
general capabilities across both natural language reasoning and
programming tasks.
Lemur-70B-Chat: An instruction-tuned and chat-aligned version of the base
model, optimized for following instructions, engaging in dialogue, and
operating as an interactive agent. This variant is tuned to respond well
in agent settings where the model must plan, act, and adapt based on
feedback from an environment.
Both models are built on top of a 70-billion parameter architecture,
derived from established open foundation models and further pretrained to
achieve the harmonized balance of skills that defines the Lemur effort.
Technical Approach
The core technical contribution of Lemur lies in its data recipe and
training methodology. The team constructed a pretraining corpus that
intentionally blends natural language text with code in a carefully
calibrated ratio. This balanced mixture allows the resulting model to
retain fluent, coherent language generation while gaining robust
programming and reasoning-through-code abilities.
Following the pretraining stage, the models undergo instruction tuning using
a combination of text and code instruction data. This step aligns the model
with human instructions and prepares it for agent-style interactions, where
the ability to interpret directions, generate correct code, and iterate
based on environmental signals is essential.
The emphasis on "executable language grounding" is a recurring theme in the
lab's work: the idea that language should not merely be understood but
should be tied to concrete, executable actions in an environment.
Agent Capabilities and Evaluation
A significant portion of the Lemur research focuses on evaluating models in
agent scenarios rather than static question-answering. Language agents must
often:
- Interact with tools and environments to accomplish tasks
- Use feedback from execution results to refine their behavior
- Follow multi-step reasoning and planning processes
- Adapt when an initial approach fails or produces errors
Lemur was benchmarked across a range of agent-oriented evaluations that test
these abilities in settings involving coding environments, tool usage, and
interactive problem-solving. The results reported in the associated research
positioned Lemur as a strong open-access option for building and studying
language agents, narrowing the gap between commercial closed models and
open alternatives in agent contexts.
Open Source and Accessibility
Consistent with its academic and research orientation, the Lemur project
released its models publicly so that the broader research community and
developers could use, study, and build upon the work. The model checkpoints
have been made available through common open model distribution channels,
allowing researchers to download the weights, run experiments, and
integrate the models into their own agent systems and applications.
This open approach supports reproducibility and encourages further
innovation in the language agent space, aligning with XLang Lab's mission of
advancing the field through shared, accessible resources.
XLang Lab's Broader Research Focus
Beyond Lemur, XLang Lab pursues a research agenda centered on language model
agents and the grounding of language into executable actions. The lab's
work spans several related themes:
- Building agents capable of operating across digital environments and
interfaces
- Connecting natural language instructions to code, APIs, and tool calls
- Advancing techniques for reasoning, planning, and self-correction in
language models
- Developing benchmarks and evaluation frameworks for agent capabilities
The lab operates within an academic setting, publishing its findings and
releasing open resources that contribute to the growing body of knowledge
around autonomous and semi-autonomous language agents.
Products and Services Summary
As a research laboratory rather than a commercial vendor, XLang Lab's
offerings center on open research artifacts rather than paid products. Its
key deliverables in connection with the Lemur project include:
- The Lemur-70B base language model
- The Lemur-70B-Chat instruction-tuned model
- A published research paper detailing methodology, training data strategy,
and agent evaluations
- Open model weights made available to the research and developer community
- Contributions to the broader ecosystem of language agent research,
including benchmarks and analysis
Significance
The Lemur project addresses a practical and important problem in the
development of AI agents: the need for models that are equally comfortable
communicating in natural language and producing correct, executable code.
By demonstrating that a single open model can achieve a strong balance
between these two competencies, XLang Lab's Lemur contributes a valuable
resource for anyone building the next generation of intelligent, action-
oriented language systems. Its open release ensures that these advances
remain accessible to the wider academic and open-source communities.