Skip to content

Project for NLP course offered at @iiis THU. Contributors: Siqiao Huang, Pingyue Sheng, Jiahe Guo

Notifications You must be signed in to change notification settings

knightnemo/nlp-proj

Repository files navigation

🏭 DreamFactory: Grounding Language Models to World Model through Decentralized Generation and Centralized Verification

We introduce DreamFactory, a step towards Text-Based World Models that:

  1. 🌍 Simulates world states by leveraging the power of Large Language Models
  2. 🧬 Combines decentralized generation and centralized verification

For Details, Check Out [Paper]

[Paper] [Code]

struct

News

Setup

Run the following Command:

conda create -n dreamfactory python=3.11.0 
conda activate pandora
pip install -r

API key

This project supports OPENAI API key, third-party API providers(together api) and local downloaded language models.

Example:

cd text-simulator

Local downloaded language models:

# For local models (Mistral-7B-v0.1 for example)
CUDA_VISIBLE_DEVICES=0 python experiments/quest_llama.py --model_path "mistralai/Mistral-7B-v0.1" --model_type local --output_prefix mistral_hwr_diff_full --device cuda --rule_folder ./rules/human_written_rules --output_folder results --data_type full --partial

Third-party API providers(together api)

# For third-party api providers
CUDA_VISIBLE_DEVICES=1 python experiments/quest_llama.py --model_path "meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo" --model_type together --output_prefix llama3_405b_hwr_diff_full --device cuda --rule_folder ./rules/human_written_rules --output_folder results --data_type full --partial

Contact

Please contact us or post an issue if you have any questions (as a course project, we do expect to encounter some questions lol).

📬 Siqiao Huang (huang-sq23@mails.tsinghua.edu.cn)

📬 Pingyue Sheng (chengpy23@mails.tsinghua.edu.cn)

📬 Jiahe Guo (guojh23@mails.tsinghua.edu.cn)

Acknowledgement

The text-simulator part of this codebase is based on the implementation from Can Language Models Serve as Text-Based World Simulators?.

About

Project for NLP course offered at @iiis THU. Contributors: Siqiao Huang, Pingyue Sheng, Jiahe Guo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •