keras-hub-nightly 0.23.0.dev202508290418__py3-none-any.whl → 0.23.0.dev202508300415__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -217,9 +217,14 @@ class DisentangledSelfAttention(keras.layers.Layer):
217
217
  )
218
218
 
219
219
  def _get_log_pos(abs_pos, mid):
220
- numerator = ops.log(abs_pos / mid)
220
+ numerator = ops.log(
221
+ ops.cast(abs_pos, "float32") / ops.cast(mid, "float32")
222
+ )
221
223
  numerator = numerator * ops.cast(mid - 1, dtype=numerator.dtype)
222
- denominator = ops.log((self.max_position_embeddings - 1) / mid)
224
+ denominator = ops.log(
225
+ ops.cast(self.max_position_embeddings - 1, "float32")
226
+ / ops.cast(mid, "float32")
227
+ )
223
228
  val = ops.ceil(numerator / denominator)
224
229
  val = ops.cast(val, dtype=mid.dtype)
225
230
  val = val + mid
keras_hub/src/version.py CHANGED
@@ -1,7 +1,7 @@
1
1
  from keras_hub.src.api_export import keras_hub_export
2
2
 
3
3
  # Unique source of truth for the version number.
4
- __version__ = "0.23.0.dev202508290418"
4
+ __version__ = "0.23.0.dev202508300415"
5
5
 
6
6
 
7
7
  @keras_hub_export("keras_hub.version")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keras-hub-nightly
3
- Version: 0.23.0.dev202508290418
3
+ Version: 0.23.0.dev202508300415
4
4
  Summary: Pretrained models for Keras.
5
5
  Author-email: Keras team <keras-users@googlegroups.com>
6
6
  License-Expression: Apache-2.0
@@ -5,7 +5,7 @@ keras_hub/models/__init__.py,sha256=Est6LugIjoAFkpTgqZWfISk-1NVMH_k-4soHCHaMmyM,
5
5
  keras_hub/samplers/__init__.py,sha256=aFQIkiqbZpi8vjrPp2MVII4QUfE-eQjra5fMeHsoy7k,886
6
6
  keras_hub/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  keras_hub/src/api_export.py,sha256=9pQZK27JObxWZ96QPLBp1OBsjWigh1iuV6RglPGMRk0,1499
8
- keras_hub/src/version.py,sha256=KLo2RYCp8Xd4Rp5OwijkTS8v-P8bUXcqrPALrtbLIks,222
8
+ keras_hub/src/version.py,sha256=_l6tQkIVZw00WagnMic0XW2amH6a9lYOb4wXF6NpChg,222
9
9
  keras_hub/src/layers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  keras_hub/src/layers/modeling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  keras_hub/src/layers/modeling/alibi_bias.py,sha256=1XBTHI52L_iJDhN_w5ydu_iMhCuTgQAxEPwcLA6BPuk,4411
@@ -138,7 +138,7 @@ keras_hub/src/models/deberta_v3/deberta_v3_text_classifier.py,sha256=OuhJrC2klo6
138
138
  keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor.py,sha256=3U2x8Nr7HhwdhAyd3duYo8jj0JDYuB8Z1WMzArzQpKI,5975
139
139
  keras_hub/src/models/deberta_v3/deberta_v3_tokenizer.py,sha256=zEMCLy9eCiBEpA_xM2j8ACg7YJunD3bAruEK-1beElk,4987
140
140
  keras_hub/src/models/deberta_v3/disentangled_attention_encoder.py,sha256=UdcZyRsFGbjWiWP7gQomMIZsq-YoA_aaA3o5R-oerXc,8571
141
- keras_hub/src/models/deberta_v3/disentangled_self_attention.py,sha256=twNrrj2sostMH_0j-5JEfJRwNGSM-rkmbzsESfXitYo,13146
141
+ keras_hub/src/models/deberta_v3/disentangled_self_attention.py,sha256=YHkYMTzeQGKZ1wj1uoo9Yb1Up7QbIFOIg7V-tijOrfg,13304
142
142
  keras_hub/src/models/deberta_v3/relative_embedding.py,sha256=Ye27E5DIBZ5_QBA2xKDK40SazpUMJ51LSC_Bb9rcyZc,2900
143
143
  keras_hub/src/models/deeplab_v3/__init__.py,sha256=FHAUPM4a1DJj4EsNTbYEd1riNq__uHU4eB3t3Z1zgj0,288
144
144
  keras_hub/src/models/deeplab_v3/deeplab_v3_backbone.py,sha256=dH7HHu_NAnE-HP6ivOL7fFLQZHt_MWmehlMccLljhPc,7764
@@ -577,7 +577,7 @@ keras_hub/src/utils/transformers/export/gemma.py,sha256=xX_vfQwvFZ_-lQX4kgMNOGKL
577
577
  keras_hub/src/utils/transformers/export/hf_exporter.py,sha256=Qk52c6LIA2eMHUNY9Vy4STJSpnhLMdJ_t-3ljqhSr4k,5081
578
578
  keras_hub/tokenizers/__init__.py,sha256=YEr_cwyX6MACxQOgyRwETilOFYBXpQLNXH22ZdSSv3o,4450
579
579
  keras_hub/utils/__init__.py,sha256=jXPqVGBpJr_PpYmqD8aDG-fRMlxH-ulqCR2SZMn288Y,646
580
- keras_hub_nightly-0.23.0.dev202508290418.dist-info/METADATA,sha256=GVMI1TgRi3Ww16pQuTz68na8X_N2pxdSM6edLsq5BfQ,7395
581
- keras_hub_nightly-0.23.0.dev202508290418.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
582
- keras_hub_nightly-0.23.0.dev202508290418.dist-info/top_level.txt,sha256=N4J6piIWBKa38A4uV-CnIopnOEf8mHAbkNXafXm_CuA,10
583
- keras_hub_nightly-0.23.0.dev202508290418.dist-info/RECORD,,
580
+ keras_hub_nightly-0.23.0.dev202508300415.dist-info/METADATA,sha256=ySkU5LddWKaxCEsI1iO23JfXenDtEfM2NjuFvxKwbIs,7395
581
+ keras_hub_nightly-0.23.0.dev202508300415.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
582
+ keras_hub_nightly-0.23.0.dev202508300415.dist-info/top_level.txt,sha256=N4J6piIWBKa38A4uV-CnIopnOEf8mHAbkNXafXm_CuA,10
583
+ keras_hub_nightly-0.23.0.dev202508300415.dist-info/RECORD,,