Skip to content

hanqi-qi/Mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mirror

Introduction

This repository is used in our paper:

Mirror: A Multiple-perspective Self-Reflection Method for Knowledge-rich Reasoning

Please cite our paper and kindly give a star for this repository if you use this code.

Requirements

  • Python 3.10.13
  • PyTorch 2.1.0
  • transformers 4.34.1

Evaluate

For ChatGPT, we use the following command to evaluate the model:

python main.py -dataset_name social --ckpt_dir "gpt35" --model_type openai --max_tree_depth 3 --action_num 3 --self_consistency 5 --start_eid 0 --end_eid 100 --advice_type gene_demo --header_type 0  --n_trials 3  --cut_prob 0.8

For Llama2 or Vicuna, we use the following command to evaluate the model:

python main.py -dataset_name social --ckpt_dir your_llama_path --model_type llama --max_tree_depth 3 --action_num 3 --self_consistency 5 --start_eid 0 --end_eid 100 --advice_type gene_demo --header_type 0  --n_trials 3  --cut_prob 0.4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy