Skip to content

Commit

Permalink
bump pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Adkins committed Apr 10, 2024
1 parent 9a6185a commit f4837ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _setup_packages() -> List:
)

def _setup_install_requires() -> List:
return ["torch>=1.7.0", "transformers<=4.40", "pydantic>=1.8.2,<2.0.0"]
return ["torch>=1.7.0", "transformers<=4.40", "pydantic<2.7"]

def _setup_extras() -> Dict:
return {"dev": ["black==22.12.0", "isort==5.8.0", "wheel>=0.36.2", "flake8>=3.8.3", "pytest>=6.0.0"]}
Expand Down
2 changes: 1 addition & 1 deletion src/sparsetensors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ is saved to the model's `config.json` file. **Note:** the model must have been
initialized with SparseAutoModelForCausalLM.from_pretrained()

```python
from sparseml.transformers.compression import BitmaskConfig
from sparsetensors import BitmaskConfig

output_dir = "/PATH/TO/SAVE/COMPRESSED_MODEL"
sparsity_config = BitmaskConfig()
Expand Down

0 comments on commit f4837ed

Please sign in to comment.