Instructions to use HPLT/hplt_bert_base_uz with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HPLT/hplt_bert_base_uz with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="HPLT/hplt_bert_base_uz", trust_remote_code=True)# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("HPLT/hplt_bert_base_uz", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload modeling_ltgbert.py with huggingface_hub
Browse files- modeling_ltgbert.py +2 -0
modeling_ltgbert.py
CHANGED
|
@@ -256,6 +256,8 @@ class LtgbertPreTrainedModel(PreTrainedModel):
|
|
| 256 |
module.bias.data.zero_()
|
| 257 |
if module.weight is not None:
|
| 258 |
module.weight.data.fill_(1.0)
|
|
|
|
|
|
|
| 259 |
|
| 260 |
|
| 261 |
class LtgbertModel(LtgbertPreTrainedModel):
|
|
|
|
| 256 |
module.bias.data.zero_()
|
| 257 |
if module.weight is not None:
|
| 258 |
module.weight.data.fill_(1.0)
|
| 259 |
+
if module.weight is not None:
|
| 260 |
+
module.weight.data.fill_(1.0)
|
| 261 |
|
| 262 |
|
| 263 |
class LtgbertModel(LtgbertPreTrainedModel):
|