Skip to content

Commit

Permalink
Bump version to v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
czczup committed May 8, 2024
1 parent bd0c0be commit 0f2f7b2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
mim install mmcv-full==1.6.2 # (optional, for mmsegmentation)
```

- Install `transformers==4.36.2`:
- Install `transformers==4.37.2`:

```bash
pip install transformers==4.36.2
pip install transformers==4.37.2
```

- Install `apex` (optional):
Expand Down
2 changes: 1 addition & 1 deletion internvl_chat/internvl/train/internvl_chat_finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from transformers.utils.logging import (enable_default_handler,
enable_explicit_format, set_verbosity)

# Upgrade transformers to v4.36.2, we don't need it anymore
# Upgrade transformers to v4.37.2, we don't need it anymore
# replace_llama2_attn_with_flash_attn()
replace_llama_rmsnorm_with_fused_rmsnorm()
replace_train_sampler()
Expand Down
2 changes: 1 addition & 1 deletion internvl_chat/internvl/train/internvl_chat_pretrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from transformers.utils.logging import (enable_default_handler,
enable_explicit_format, set_verbosity)

# Upgrade transformers to v4.36.2, we don't need it anymore
# Upgrade transformers to v4.37.2, we don't need it anymore
# replace_llama2_attn_with_flash_attn()
replace_llama_rmsnorm_with_fused_rmsnorm()
replace_train_sampler()
Expand Down
4 changes: 2 additions & 2 deletions internvl_chat/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "internvl_chat"
version = "1.2.3"
version = "1.5.0"
description = "Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Tasks."
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -14,7 +14,7 @@ classifiers = [
]
dependencies = [
"torch==2.0.1", "torchvision==0.15.2",
"transformers==4.36.2", "tokenizers==0.15.1", "sentencepiece==0.1.99", "shortuuid",
"transformers==4.37.2", "tokenizers==0.15.1", "sentencepiece==0.1.99", "shortuuid",
"accelerate", "peft>=0.4.0", "bitsandbytes==0.41.0",
"pydantic<2,>=1", "markdown2[all]", "numpy", "scikit-learn>=1.2.2",
"gradio==3.35.2", "gradio_client==0.2.9",
Expand Down
2 changes: 1 addition & 1 deletion internvl_chat_llava/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ We mainly use the LLaVA codebase to evaluate InternVL in creating multimodal dia

We have retained the original documentation of LLaVA 1.5 as a more detailed manual. In most cases, you will only need to refer to the new documentation that we have added.

> Note: To unify the environment across different tasks, we have made some compatibility modifications to the LLaVA code, allowing it to support `transformers==4.36.2` (originally locked at 4.31.0). Please note that `transformers==4.36.2` should be installed.
> Note: To unify the environment across different tasks, we have made some compatibility modifications to the LLaVA code, allowing it to support `transformers==4.37.2` (originally locked at 4.31.0). Please note that `transformers==4.37.2` should be installed.
## 🛠️ Installation

Expand Down
2 changes: 1 addition & 1 deletion internvl_chat_llava/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
]
dependencies = [
"torch==2.0.1", "torchvision==0.15.2",
"transformers==4.36.2", "tokenizers==0.15.1", "sentencepiece==0.1.99", "shortuuid",
"transformers==4.37.2", "tokenizers==0.15.1", "sentencepiece==0.1.99", "shortuuid",
"accelerate", "peft>=0.4.0", "bitsandbytes==0.41.0",
"pydantic<2,>=1", "markdown2[all]", "numpy", "scikit-learn>=1.2.2",
"gradio==3.35.2", "gradio_client==0.2.9",
Expand Down

0 comments on commit 0f2f7b2

Please sign in to comment.