Giter Club home page Giter Club logo

llm_inference's People

Contributors

alisonhc avatar dennlinger avatar lmvasque avatar sweta20 avatar tannonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

llm_inference's Issues

generated checklists are incorrect

Checklists generated with scripts/get_results.py are currently incorrect.

It should not expect cross-dataset test/valid set combinations, e.g.

bloom,asset-test,med-easi-validation,3,p0,1,287,random,No
bloom,asset-test,med-easi-validation,3,p0,1,489,random,No
bloom,asset-test,med-easi-validation,3,p0,1,723,random,No
bloom,asset-test,med-easi-validation,3,p0,1,732,random,No

@lmvasque

Replace `assert` with `Raise SomeError`

One of my nitpicks in Python code is that assert statements may not be run if running with the python -O flag. Although unlikely, better practice is to replace them with raise SomeError(""), which always triggers.
This simultaneously forces us to write some (more or less specific) error codes as well, such that ideally users have a clear idea why code failed.

Sample `prompts/p0.json`

The example script to run the inference.py file lists a prompts/p0.json file path, which does not seem to be included in the installation instructions. I have run scripts/fetch_data.sh/ script, but still nothing.

Would it be possible to share this as a dummy script to let users build on top of this template?

Allow data loading from archival sources (e.g., Huggingface datasets)

I wanted to collect a number of open tasks that I can think of as "issues", which hopefully makes it easier for people to collaborate on the code base.

To efficiently run experiments later on, we should probably look into writing a loader class that can generalize beyond file inputs to something like Huggingface datasets or .csv/.tsv files. This would also be good practice to enable a wider adoption of this script after whatever experiments we run.

[Potential Bug] Typing incomaptibility in util functions

Hi,
just noticed that there is a potential type conflict between serialize_to_jsonl (expects a List[str] as the second input, and the output of postprocess_model_outputs (List[List[str]]).
This is relevant for line 107 in inference.py, but not sure if this is just a potential mistake on the coding end, or could actually cause an error when running the script.

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.