Code Monkey home page Code Monkey logo

Comments (1)

YannDubs avatar YannDubs commented on September 27, 2024 1

Updated the notebook

First, let's load the instruction complexity ($\mathbf{w'}_x^T$).
This was precomputed by fitting the logistic regression as the one above with the following changes:

  • replace the instruction embedding by a one hot encoding of the instruction
  • tie the weights of the instruction across all the models and fit jointly across all the models

Here's the equation:

$$win_rate(m,b) = \frac{1}{N} \sum_{i=1}^{N} logistic( \mathbf{w}_l[(m,b)] * tanh(standardized(length(m(x_i)) - length(b(x_i)))) + \mathbf{w}_x*I(x_i) + (\mathbf{w}_m[m] - \mathbf{w}_m[b]))$$

Here $\mathbf{w}_x$ is shared across all models and quantifies how good the baseline win-rate on a certain instruction is.
We then extract this weight and use it as $embedding(x)$ because we want to fit all models disjointly.

Also the paper has more explanation about why: https://arxiv.org/abs/2404.04475

from alpaca_eval.

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.