Coder Social home page Coder Social logo

key error 'seq_len' about chatglm-tuning HOT 9 CLOSED

mymusise avatar mymusise commented on July 17, 2024
key error 'seq_len'

from chatglm-tuning.

Comments (9)

yinzhang809 avatar yinzhang809 commented on July 17, 2024 2

tokenize_dataset_rows.py会用到一个generator会走缓存,但是删除了,重新下载也是不行

/root/.cache/huggingface/datasets/generator/default-d526ca01fe8f63be/0.0.0

执行finetune 的时候记得加--remove_unused_columns false 参数

from chatglm-tuning.

mymusise avatar mymusise commented on July 17, 2024

重新执行下:

python cover_alpaca2jsonl.py \
    --data_path data/alpaca_data.json \
    --save_path data/alpaca_data.jsonl \

and

python tokenize_dataset_rows.py \
    --jsonl_path data/alpaca_data.jsonl \
    --save_path data/alpaca \
    --max_seq_length 320

from chatglm-tuning.

superhg avatar superhg commented on July 17, 2024

max_seq_length 320 为何设置的这么短

from chatglm-tuning.

superhg avatar superhg commented on July 17, 2024

重新执行下:

python cover_alpaca2jsonl.py \
    --data_path data/alpaca_data.json \
    --save_path data/alpaca_data.jsonl \

and

python tokenize_dataset_rows.py \
    --jsonl_path data/alpaca_data.jsonl \
    --save_path data/alpaca \
    --max_seq_length 320

还是同样的错误,不起作用

from chatglm-tuning.

mymusise avatar mymusise commented on July 17, 2024

max_seq_length 320 为何设置的这么短

显存够的话可以设大点

from chatglm-tuning.

mymusise avatar mymusise commented on July 17, 2024

还是同样的错误,不起作用

感觉像是有缓存

from chatglm-tuning.

superhg avatar superhg commented on July 17, 2024

tokenize_dataset_rows.py会用到一个generator会走缓存,但是删除了,重新下载也是不行

/root/.cache/huggingface/datasets/generator/default-d526ca01fe8f63be/0.0.0

from chatglm-tuning.

mymusise avatar mymusise commented on July 17, 2024

可以debug看看tokenize_dataset_rows.py最终有没有生效

from chatglm-tuning.

superhg avatar superhg commented on July 17, 2024

嗯,最后是定位到这里了

from chatglm-tuning.

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.