Coder Social home page Coder Social logo

Comments (5)

clarkkev avatar clarkkev commented on April 28, 2024

I don't see a bug. Line 131 loads from {$BAM_DIR}/models/{teachers[task]}/output/{task}_train_predictions_1.pkl. Therefore it should work as long as you have the files

$BAM_DIR/models/mrpc-model/outputs/mrpc_train_predictions_1.pkl
$BAM_DIR/models/rte-model/outputs/rte_train_predictions_1.pkl

Based on the error message, it looks like the predictions file is present but incorrect in some way. Perhaps you trained the single-task models with {"debug": True} and are now training in non-debug-mode? Debug mode uses a tiny train set, so the written-out predictions won't cover the full train set.

from google-research.

SanPianWang avatar SanPianWang commented on April 28, 2024

Thanks for your reply, after another trying, it fixed.
But i wonder that when writting the test outputs in run_classifier.py Line 269, the distill_input perhaps should be loaded from the corresponding files like: {$BAM_DIR}/models/{teachers[task]}/output/{task}_test_predictions_1.pkl? Due to the testing examples are pickling from the test.tsv
Is there any mismatch between the testing examples and distill inputs during the prediction?

from google-research.

clarkkev avatar clarkkev commented on April 28, 2024

Distillation is only used during training, not at test time. So although we write out the test predictions because they might be useful for evaluation or error analysis, they are never needed for training a BAM model.

from google-research.

SanPianWang avatar SanPianWang commented on April 28, 2024

Thanks for the explanation

from google-research.

Mahhos avatar Mahhos commented on April 28, 2024

Thanks for your reply, after another trying, it fixed.
But i wonder that when writting the test outputs in run_classifier.py Line 269, the distill_input perhaps should be loaded from the corresponding files like: {$BAM_DIR}/models/{teachers[task]}/output/{task}_test_predictions_1.pkl? Due to the testing examples are pickling from the test.tsv
Is there any mismatch between the testing examples and distill inputs during the prediction?

May I know how you fix this? I am running BAM, and on one of my datasets, I am getting key_error and I am not sure why.

from google-research.

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.