Could you please help with the HuggingFace Validation not working as expected?
When trying to validate other models such Roberta, Bloom etc, the Validation works fine but I have added Distilbert and it give the following error.
[ Info: Loading python packages
[ Info: Python packages loaded successfully
[ Info: Load configure file in Python
[ Info: Load configure file in Julia
[ Info: Validate distilbert/distilbert-base-cased based model
[ Info: Loading based model in Python
[ Info: Python model loaded successfully
[ Info: Loading based model in Julia
┌ Error: Failed to load the model in Julia
└ @ Main ~/Projects/Transformers.jl/example/HuggingFaceValidation/utils.jl:2
Based Model: Error During Test at /Users/456828/Projects/Transformers.jl/example/HuggingFaceValidation/based_model.jl:6
Got exception outside of a @test
Unknown model type: distilbert
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] _get_model_type(model_type::Symbol)
@ Transformers.HuggingFace ~/.julia/packages/Transformers/qH1VW/src/huggingface/models/models.jl:35
[3] macro expansion
@ ~/.julia/packages/Transformers/qH1VW/src/huggingface/models/models.jl:40 [inlined]
[4] #1071#default_f
@ ~/.julia/packages/ValSplit/Qe1Uy/src/ValSplit.jl:185 [inlined]
[5] macro expansion
@ ~/.julia/packages/ValSplit/Qe1Uy/src/ValSplit.jl:0 [inlined]
[6] _valswitch
@ ~/.julia/packages/ValSplit/Qe1Uy/src/ValSplit.jl:137 [inlined]
[7] get_model_type
@ ~/.julia/packages/ValSplit/Qe1Uy/src/ValSplit.jl:187 [inlined]
[8] get_model_type(model_type::Symbol, task::Symbol)
@ Transformers.HuggingFace ~/.julia/packages/Transformers/qH1VW/src/huggingface/models/models.jl:43
However if I load the implementation of distilbert from REPL I am able to load it.
Hi Peter @chengchingwen,
Could you please help with the HuggingFace Validation not working as expected?
When trying to validate other models such Roberta, Bloom etc, the Validation works fine but I have added Distilbert and it give the following error.
However if I load the implementation of distilbert from REPL I am able to load it.
Transformers.HuggingFace.load_model("distilbert/distilbert-base-cased", :model, state_dict; config= conf)