Cannot import PretrainedModelOptions (or quantization data types) in typescript #998
Open
1 of 5 tasks
Labels
bug
Something isn't working
System Info
Transformers.js 3.0.1
running in node 18 using CommonJS
Environment/Platform
Description
When trying to import the
PretrainedModelOptions
type in my typescript application, I'm getting this error message:I'm getting a similar issue when trying to import the quantization data type that is mentioned in
PretrainedModelOptions
, (the datatype that contains e.g.q8
).The problem seems to be that neither
types/utils/hub.d.ts
nortypes/utils/dtypes.d.ts
are exported throughtypes/transformers.d.ts
Reproduction
Using this statement:
results in the error message.
The text was updated successfully, but these errors were encountered: