cdpierse / cdpierse/pyinfer

Unpack dict like inputs

Open
#5 0 comments 0 reactions 1 assignee Claimed by @cdpierse View on GitHub
enhancement good first issue
Dominant language
Python
Stars
24
Forks
0
PR merge metrics
No merged PRs in 30d

Description

- Currently inputs that are dict-like cannot be unpacked into the model during a run.
- For example when running a hugging face model with inputs from a tokenizer the input type is custom class that is dict like. To run the model with these inputs you would call `model(**inputs)` but with the current implementation of pyinfer this is not possible.

**Possible Solutions**
- add checks for types of input and decide whether to unpack based on those checks.
- allow user to specify input needs unpacking via parameter, this is probably the best option as it allows for custom class types to be unpacked.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.