Coder Social home page Coder Social logo

数据预处理报错 about chatglm-tuning HOT 3 CLOSED

mymusise avatar mymusise commented on August 16, 2024
数据预处理报错

from chatglm-tuning.

Comments (3)

zxcvbn114514 avatar zxcvbn114514 commented on August 16, 2024

兄弟可以看我的issue,有大佬解答了

from chatglm-tuning.

c2j avatar c2j commented on August 16, 2024

Same Error in the first step:
(GPTENV) c2j@Goku:~/workspace/GPT/ChatGLM-Tuning$ python tokenize_dataset_rows.py --jsonl_path data/alpaca_data.jsonl --save_path data/alpaca --max_seq_length 512
Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
52002it [00:20, 2508.60it/s]
Traceback (most recent call last):
File "tokenize_dataset_rows.py", line 45, in
main()
File "tokenize_dataset_rows.py", line 38, in main
arr = np.array(all_tokenized)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (52002,) + inhomogeneous part.

from chatglm-tuning.

MEIZU16 avatar MEIZU16 commented on August 16, 2024

兄弟可以看我的issue,有大佬解答了

ok

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.