Code Monkey home page Code Monkey logo

Comments (7)

gitgroman avatar gitgroman commented on May 28, 2024 2

--data.val_split_fraction 0.1

fixed issue.

@carmocca

from litgpt.

TheGermanEngie avatar TheGermanEngie commented on May 28, 2024

I even updated the dataset to have one more indent for the {} to match litgpt's given .json object formatting:

From this:
Screenshot 2024-04-01 at 19 49 36

To this:

Screenshot 2024-04-01 at 19 49 57

And I still get the same error.

from litgpt.

TheGermanEngie avatar TheGermanEngie commented on May 28, 2024

Running a test load of the default Alpaca dataset with the command litgpt finetune lora --data Alpaca --checkpoint_dir checkpoints/mobiuslabsgmbh/aanaphi2-v0.1 runs fine, so I think it's my dataset. I can't find any formatting differences between the default dataset and mine, so kind of at a loss here.

from litgpt.

TheGermanEngie avatar TheGermanEngie commented on May 28, 2024

I would like to add that my dataset does exponentially grow in size because it is based around a speaker diarization type of dataset. To keep all the context of the conversation, each time the Speaker 0 and Speaker 1 nametags change in the dataset, the output is loaded back into the "input" format and the text continues until Speakers change, for example:

Screenshot 2024-04-01 at 20 35 17

As you can imagine, it grows very exponentially. This makes me wonder if the error earlier has to do with context length limits or anything like that when initially loading the dataset: as the finetuning scripts work bydetermining the size of the longest tokenized sample in the dataset to determine the block size.and the files do get quite long. I also did try to truncate the dataset earlier with --train.max_seq_length 256 to no difference.

from litgpt.

gitgroman avatar gitgroman commented on May 28, 2024

Same for me, I don't think size matters as it failed with really small dataset with few records.

from litgpt.

carmocca avatar carmocca commented on May 28, 2024

@rasbt can you check this out? There might be a bug in the json datamodule

from litgpt.

carmocca avatar carmocca commented on May 28, 2024

#1241 improves the messaging

from litgpt.

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.