Giter VIP home page Giter VIP logo

Comments (4)

CodeCreator avatar CodeCreator commented on August 12, 2024 1

You only need to finetune the model -- the tokenizer remains unchanged, e.g., the tokenizer princeton-nlp/AutoCompressor-Llama-2-7b-6k is the same as the standard Llama-2 tokenizer.

from autocompressors.

CodeCreator avatar CodeCreator commented on August 12, 2024

This should be straightforward!

First, have a look at the train.sh and train_llama.sh scripts in the run/ folder. To fine-tune from an existing AutoCommpressor instead of an LM base model, simply change the model_url variable to a AutoCompressor on huggingface-hub or from a local checkpoint, e.g., changing this line to model_url="princeton-nlp/AutoCompressor-Llama-2-7b-6k" will fine-tune from this model.

from autocompressors.

imbalu007 avatar imbalu007 commented on August 12, 2024

Thanks!
Also, I couldn't find references to training/finetuning a tokenizer in the paper. But in the example usage, you refer to a custom tokenizer (I think).
tokenizer = AutoTokenizer.from_pretrained("princeton-nlp/AutoCompressor-Llama-2-7b-6k").
Do we need to finetune the tokenizer also and not just the model?

from autocompressors.

hxs91 avatar hxs91 commented on August 12, 2024

@imbalu007 Hi, have you finetuned the AutoCompressor model on downstream task? If so, what about the performance? Thanks.

from autocompressors.

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.