Skip to content

Commit

Permalink
Add broken codeblock tag in Falcon Config
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen committed Oct 19, 2023
1 parent 1fbd699 commit b9e4f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/falcon/configuration_falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class FalconConfig(PretrainedConfig):
Example:
```pytho
```python
>>> from transformers import FalconModel, FalconConfig
>>> # Initializing a small (2-layer) Falcon configuration
Expand Down Expand Up @@ -188,4 +188,4 @@ def _rope_scaling_validation(self):
f"`rope_scaling`'s type field must be one of ['linear', 'dynamic'], got {rope_scaling_type}"
)
if rope_scaling_factor is None or not isinstance(rope_scaling_factor, float) or rope_scaling_factor <= 1.0:
raise ValueError(f"`rope_scaling`'s factor field must be an float > 1, got {rope_scaling_factor}")
raise ValueError(f"`rope_scaling`'s factor field must be a float > 1, got {rope_scaling_factor}")

0 comments on commit b9e4f0a

Please sign in to comment.