Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo.ipynb can't run #101

Open
strong-leaf opened this issue Oct 21, 2024 · 1 comment
Open

demo.ipynb can't run #101

strong-leaf opened this issue Oct 21, 2024 · 1 comment

Comments

@strong-leaf
Copy link

hi when i run demo.ipynb
with open('/root/llm-reasoners/examples/CoT/blocksworld/prompts/pool_prompt_v1.json') as f:
prompt = json.load(f) #/root/llm-reasoners/examples
evaluator = BWEvaluator(config_file='/root/llm-reasoners/examples/CoT/blocksworld/data/bw_config.yaml',
domain_file='/root/llm-reasoners/examples/CoT/blocksworld/data/generated_domain.pddl',
data_path='/root/llm-reasoners/examples/CoT/blocksworld/data/split_v1/split_v1_step_4_data.json',
init_prompt=prompt)
prompt = evaluator.sample_prompt(shuffle_prompt=False, num_shot=4)
example = evaluator.full_dataset[1]
cot_inputs = (prompt['icl'].replace('<init_state>', example["init"])
.replace('', example["goal"])
.replace('', ''))

it appear:
tarski.io._fstrips.reader.ParsingError: line 3:9 mismatched input 'problem' expecting 'domain'

@Ber666
Copy link
Collaborator

Ber666 commented Oct 28, 2024

Hi, I tried running the notebook today but couldn't reproduce the error. Could you confirm you have followed our README to install all required libraries and properly cloned LLMs-Planning @ 34e6841 (if you cloned our library with --recursive it should be automatically done) which contains the dataset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants