tannonk / llm_inference Goto Github PK
View Code? Open in Web Editor NEWLLM inference with HuggingFace (experimental)
LLM inference with HuggingFace (experimental)
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
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.
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?
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.