Skip to content

Commit

Permalink
Stability improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitLab Mirror Bot committed Feb 12, 2025
1 parent cc739a8 commit 57e7b21
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 1 deletion.
14 changes: 14 additions & 0 deletions cosmos1/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
14 changes: 14 additions & 0 deletions cosmos1/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
3 changes: 3 additions & 0 deletions cosmos1/models/tokenizer/nemo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ Complete the following steps to post-train the Cosmos tokenizer Cosmos-1.0-Token
pip install megatron-energon==4.0.0 pyav
pip install git+https://github.com/NVIDIA/NeMo-Run.git
pip install moviepy==1.0.3 imageio

# switch to NeMo branch supporting tokenizer post-training
cd /opt/NeMo && git fetch origin cosmos_tokenizer && git checkout cosmos_tokenizer
```

2. Run the following command to post-train Cosmos-1.0-Tokenizer-CV8x8x8:
Expand Down
14 changes: 14 additions & 0 deletions cosmos1/scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
14 changes: 14 additions & 0 deletions cosmos1/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ av
better-profanity
einops==0.7.0
einx==0.1.3
git+https://github.com/NVlabs/Pytorch_Retinaface.git@b843f45
huggingface-hub>=0.26.2
hydra-core
imageio[ffmpeg]
Expand All @@ -28,6 +27,7 @@ mediapy
nltk
peft
pillow
pytorch_retinaface @ git+https://github.com/NVlabs/Pytorch_Retinaface.git@b843f45
sentencepiece
termcolor
transformers==4.45.0

0 comments on commit 57e7b21

Please sign in to comment.