Instructions to use nvidia/Cosmos-Embed1-224p with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use nvidia/Cosmos-Embed1-224p with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- NeMo
How to use nvidia/Cosmos-Embed1-224p with NeMo:
# tag did not correspond to a valid NeMo domain.
- Notebooks
- Google Colab
- Kaggle
Update modeling_qformer to support latest transformers
#1
by thhaus - opened
- modeling_qformer.py +2 -0
modeling_qformer.py
CHANGED
|
@@ -41,6 +41,8 @@ from transformers.modeling_outputs import (
|
|
| 41 |
)
|
| 42 |
from transformers.modeling_utils import (
|
| 43 |
PreTrainedModel,
|
|
|
|
|
|
|
| 44 |
apply_chunking_to_forward,
|
| 45 |
find_pruneable_heads_and_indices,
|
| 46 |
prune_linear_layer,
|
|
|
|
| 41 |
)
|
| 42 |
from transformers.modeling_utils import (
|
| 43 |
PreTrainedModel,
|
| 44 |
+
)
|
| 45 |
+
from transformers.pytorch_utils import (
|
| 46 |
apply_chunking_to_forward,
|
| 47 |
find_pruneable_heads_and_indices,
|
| 48 |
prune_linear_layer,
|