Git Product home page Git Product logo

Comments (2)

sbmsr avatar sbmsr commented on June 5, 2024 3

I believe the proper filename is configs/train/finetune.yaml

from gpt4all.

thinkall avatar thinkall commented on June 5, 2024

I believe the proper filename is configs/train/finetune.yaml

Thank you @sbmsr . Would you mind help me with another issue? I tried using the Training Data Without P3 and Full Dataset with P3 in the dataset_path: raw_data_sanity_cleaned/data.jsonl with model zpn/llama-7b, but I got TypeError: len() of a 0-d tensor while preparing data.

Map (num_proc=64):  99%|██████████████████████████████████▊| 761922/765889 [05:46<00:00, 17174.63 examples/s]


multiprocess.pool.RemoteTraceback:                                                                           
"""
Traceback (most recent call last):
  File "/anaconda3/envs/gpt4all/lib/python3.10/site-packages/multiprocess/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/anaconda3/envs/gpt4all/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1349, in _write_generator_to_queue
    for i, result in enumerate(func(**kwargs)):
  File "/anaconda3/envs/gpt4all/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3329, in _map_single
    batch = apply_function_on_filtered_inputs(
  File "/anaconda3/envs/gpt4all/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3210, in apply_function_on_filtered_inputs
    processed_inputs = function(*fn_args, *additional_args, **fn_kwargs)
  File "/llm/gpt4all/data.py", line 84, in <lambda>
    lambda ele: tokenize_inputs(config, tokenizer, ele),
  File "/llm/gpt4all/data.py", line 19, in tokenize_inputs
    input_len = len(input_tokens)
  File "/anaconda3/envs/gpt4all/lib/python3.10/site-packages/torch/_tensor.py", line 908, in __len__
    raise TypeError("len() of a 0-d tensor")
TypeError: len() of a 0-d tensor
"""

Solved in #53

from gpt4all.

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.