Download .venv/transformers/examples/modular-transformers/modular_multimodal1.py from DrDavis/PythonProject1: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/DrDavis/PythonProject1/resolve/main/.venv/transformers/examples/modular-transformers/modular_multimodal1.py
- Command line
-
hf download hf://DrDavis/PythonProject1/.venv/transformers/examples/modular-transformers/modular_multimodal1.py
-
curl -L -o modular_multimodal1.py https://huggingface.co/DrDavis/PythonProject1/resolve/main/.venv/transformers/examples/modular-transformers/modular_multimodal1.py
207 Bytes
| from transformers.models.llama.modeling_llama import LlamaModel | |
| # Check that we can correctly change the prefix (here add Text part at the end of the name) | |
| class Multimodal1TextModel(LlamaModel): | |
| pass | |