Instructions to use thunlp/Lawformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thunlp/Lawformer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="thunlp/Lawformer")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("thunlp/Lawformer") model = AutoModelForMaskedLM.from_pretrained("thunlp/Lawformer") - Inference
- Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#3
by SFconvertbot - opened
- .gitattributes +1 -0
- model.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -15,3 +15,4 @@
|
|
| 15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 17 |
pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 17 |
pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
model.safetensors filter=lfs diff=lfs merge=lfs -text
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9133b2def9d8dcad2b44e36aa64cc380934b857c8e18f592a156fd928e3a2257
|
| 3 |
+
size 505289816
|