Instructions to use hf-internal-testing/test_dynamic_model_v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/test_dynamic_model_v1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/test_dynamic_model_v1.0", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hf-internal-testing/test_dynamic_model_v1.0", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
fix tests for #29175
#1
by not-lain - opened
@Rocketknight1 @ArthurZ one minor thing with the tests related to #29175 it seems that this repo has a custom architecture that was defined in another repo and not the in the same one
TLDR;
- there is a repo with a dot in its name and have custom architecture defined in another repo (examples : nomic1.5, pr9 of RMBG1.4 ) (no problems with this in the current version of the transformers library)
- there is a repo with a dot in its name and the architecture is defined in the same repo (example MyRepo1.0, pr6 of RMBG1.4 ) (we just fixed those in #29175)
since this repo falls in category1 and not category2 this pr will fix that for you
and yes #29175 fixed everything for me for both MyRepo1.0 and pr6 of RMBG1.4 and this is an extra example using it
Got it, and thanks for the fix! I just got to this bit of the video
Rocketknight1 changed pull request status to merged
don't mention it 🤗