Instructions to use ai2lumos/lumos_maths_ground_iterative with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ai2lumos/lumos_maths_ground_iterative with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ai2lumos/lumos_maths_ground_iterative")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ai2lumos/lumos_maths_ground_iterative") model = AutoModelForCausalLM.from_pretrained("ai2lumos/lumos_maths_ground_iterative") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ai2lumos/lumos_maths_ground_iterative with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ai2lumos/lumos_maths_ground_iterative" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ai2lumos/lumos_maths_ground_iterative", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ai2lumos/lumos_maths_ground_iterative
- SGLang
How to use ai2lumos/lumos_maths_ground_iterative with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ai2lumos/lumos_maths_ground_iterative" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ai2lumos/lumos_maths_ground_iterative", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ai2lumos/lumos_maths_ground_iterative" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ai2lumos/lumos_maths_ground_iterative", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ai2lumos/lumos_maths_ground_iterative with Docker Model Runner:
docker model run hf.co/ai2lumos/lumos_maths_ground_iterative
πͺ Agent Lumos: Unified and Modular Training for Open-Source Language Agents
π[Website] π[Paper] π€[Data] π€[Model] π€[Demo]
We introduce πͺLumos, Language Agents with Unified Formats, Modular Design, and Open-Source LLMs. Lumos unifies a suite of complex interactive tasks and achieves competitive performance with GPT-4/3.5-based and larger open-source agents.
Lumos has following features:
- π§© Modular Architecture:
- π§© Lumos consists of planning, grounding, and execution modules built based on LLAMA-2-7B/13B and off-the-shelf APIs.
- π€ Lumos utilizes a unified data format that encompasses multiple task types, thereby enabling the developed agent framework to conveniently support a range of interactive tasks.
- π Diverse Training Data:
- π Lumos is trained with ~56K diverse high-quality subgoal/action annotations from ground-truth reasoning steps in existing benchmarks with GPT-4.
- βοΈ Lumos data can be instrumental for future research in developing open-source agents for complex interactive tasks.
- π Competitive Performance:
- π Lumos is comparable or even beats GPT-series agents on web/complex QA tasks Mind2Web and HotpotQA, and larger open agents on math and multimodal tasks.
- π Lumos exceeds contemporaneous agents that have been fine-tuned with in-domain HotpotQA, Mind2Web and ScienceQA annotations, such as FiReAct, AgentLM, and AutoAct.
- π Lumos performs better than open agent baseline formulations including chain-of-thoughts and integrated training.
- π Lumos surpasses larger open LLM agents and domain-specific agents on unseen tasks, WebShop and InterCode_SQL.
Model Overview
lumos_maths_ground_iterative is a grounding module checkpoint finetuned on maths task in Lumos-Iterative (Lumos-I) formulation.
The training annotation is shown below:
| Training Data | Number |
|---|---|
lumos_maths_ground_iterative |
19778 |
Citation
If you find this work is relevant with your research, please feel free to cite our work!
@article{yin2023lumos,
title={Agent Lumos: Unified and Modular Training for Open-Source Language Agents},
author={Yin, Da and Brahman, Faeze and Ravichander, Abhilasha and Chandu, Khyathi and Chang, Kai-Wei and Choi, Yejin and Lin, Bill Yuchen},
journal={arXiv preprint arXiv:2311.05657},
year={2023}
}
- Downloads last month
- 9