Giter Club home page Giter Club logo

Comments (4)

vanzytay avatar vanzytay commented on May 16, 2024

Two things to take note of here.

  1. ensure you're not using cross attention between documents.
  2. ensure that you're not using subword or word level but character level.

Thanks

from long-range-arena.

mlpen avatar mlpen commented on May 16, 2024

Thanks for replying.

  1. I am also use two tower style model
    token_out_0 = self.model(input_ids_0, mask_0)
    token_out_1 = self.model(input_ids_1, mask_1)
    seq_scores = self.seq_classifer(token_out_0, token_out_1)
    Within self.seq_classifer, the following is computed:
    X_0 = pooling(token_out_0, self.pooling_mode)
    X_1 = pooling(token_out_1, self.pooling_mode)
    seq_scores = self.mlpblock(torch.cat([X_0, X_1, X_0 * X_1, X_0 - X_1], dim = -1))

  2. I use the input_pipeline.get_matching_datasets to generate data and tokenizer is set to "char"
    train_ds, eval_ds, test_ds, encoder = input_pipeline.get_matching_datasets(
    n_devices = 1, task_name = None, data_dir = "../../lra_release/lra_release/tsv_data/",
    batch_size = 1, fixed_vocab = None, max_length = 4000, tokenizer = "char",
    vocab_file_path = None)

from long-range-arena.

adamsolomou avatar adamsolomou commented on May 16, 2024

@mlpen How many training steps and warmup did you use? Config says to use 5K training steps and 8K warmup steps, but that feels weird.

from long-range-arena.

vanzytay avatar vanzytay commented on May 16, 2024

That's because we used some default FLAX code and only did cursory sweep of hparams (hparam sweeps not within scope of the paper). Some other folks have found that training longer leads to better performance, hence I recommend works like https://arxiv.org/abs/2106.01540 and follow their setup. Thanks :)

from long-range-arena.

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.