Code Monkey home page Code Monkey logo

Comments (2)

DseidLi avatar DseidLi commented on June 12, 2024

Hi , we will fix this bug later, but you can write a config file like https://github.com/open-compass/opencompass/blob/main/configs/eval_needlebench.py

In your case, it would be like

from mmengine.config import read_base
with read_base():
    # only eval original "needle in a haystack test" in needlebench_4k
    from .models.chatglm.hf_chatglm3_6b_32k import models
    from .datasets.needlebench.needlebench_8k.needlebench_single import needlebench_datasets_zh, needlebench_datasets_en
    from .summarizers.needlebench import needlebench_4k_summarizer as summarizer

for m in models:
    m['max_seq_len'] = 32768

datasets = sum([v for k, v in locals().items() if ('datasets' in k)], [])

work_dir = './outputs/needlebench'

and then run following command

python run.py the_config_file_path.py

make sure you have enough gpus, in your environment , it seems that your cuda is not available.

"'CUDA available': False,"

from opencompass.

DseidLi avatar DseidLi commented on June 12, 2024

Hello @hejunqing , I have already fixed this issue in the latest OpenCompass. Please see this PR for details: #1102. It includes updated guides for conducting the Needle In A Haystack evaluation, including instructions for running from the command line.

from opencompass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.