Giter Club home page Giter Club logo

Comments (2)

apachemycat avatar apachemycat commented on July 3, 2024

but meta-Llama-3-8B model correct

root@63733705cb83:/ColossalAI/applications/Colossal-LLaMA# python prepare_sft_dataset.py --data_input_dirs /models/train-data-dir --tokenizer_dir /models/llama-2-13b-hf^Ct_dirs /models/train-data-dir/out --num_spliced_dataset_bins 1
root@63733705cb83:/ColossalAI/applications/Colossal-LLaMA# python prepare_sft_dataset.py --data_input_dirs /models/train-data-dir --tokenizer_dir /models/meta-Llama-3-8B --data_output_dirs /models/train-data-dir/out --num_spliced_dataset_bins 1
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
[05/14/24 16:51:56] INFO colossalai - colossalai - INFO: /ColossalAI/applications/Colossal-LLaMA/prepare_sft_dataset.py:101 main
INFO colossalai - colossalai - INFO: Start to process part-0/1 of all original datasets.
Map (num_proc=8): 100%|███████████████████████████████████████████████████████████████████████████████| 8/8 [00:02<00:00, 3.26 examples/s]
Filter: 100%|████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:00<00:00, 469.98 examples/s]
[05/14/24 16:51:59] INFO colossalai - colossalai - INFO: /ColossalAI/applications/Colossal-LLaMA/prepare_sft_dataset.py:127 main
INFO colossalai - colossalai - INFO: processing 0 spliced data points for
/models/train-data-dir/out/jsonl/part-00000.jsonl
INFO colossalai - colossalai - INFO: /ColossalAI/applications/Colossal-LLaMA/prepare_sft_dataset.py:133 main
INFO colossalai - colossalai - INFO: Start to save /models/train-data-dir/out/arrow/part-00000
Setting num_proc from 48 back to 1 for the train split to disable multiprocessing as it only contains one shard.
Generating train split: 8 examples [00:00, 967.99 examples/s]
Saving the dataset (8/8 shards): 100%|████████████████████████████████████████████████████████████████| 8/8 [00:00<00:00, 36.59 examples/s]

from colossalai.

TongLi3701 avatar TongLi3701 commented on July 3, 2024

Hi,

As the bos, eos tokens are different for llama2 and llama3, so you need to choose which version of llama you want to process.

We have a parameter to set version of llama here:

parser.add_argument("--llama_version", type=int, default=3, help="LLaMA version")

The default one is llama3.
Also you will need to change the default conversation template to llama2 at here:

We will fix the issue. Thanks.

from colossalai.

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.