Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
sentence-transformers
/
gtr-t5-base
like
19
Follow
Sentence Transformers
1.17k
Sentence Similarity
sentence-transformers
PyTorch
Safetensors
English
t5
feature-extraction
Inference Endpoints
arxiv:
2112.07899
License:
apache-2.0
Model card
Files
Files and versions
Community
4
Train
Deploy
Use this model
7027e95
gtr-t5-base
/
convert_to_fp16.py
nreimers
add convert files
967b085
almost 3 years ago
raw
Copy download link
history
blame
Safe
198 Bytes
import
sys
from
transformers
import
T5EncoderModel
in_path = sys.argv[
1
]
out_path = sys.argv[
2
]
model = T5EncoderModel.from_pretrained(in_path)
model.half()
model.save_pretrained(out_path)