Instructions to use kornwtp/ConGen-model-wangchanberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use kornwtp/ConGen-model-wangchanberta with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("kornwtp/ConGen-model-wangchanberta") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use kornwtp/ConGen-model-wangchanberta with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kornwtp/ConGen-model-wangchanberta", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#1
by SFconvertbot - opened
0_Transformer/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:628ff9c9718ae183698ff6afd58c2de1f25b1ebb472549ca8396aa6269bc9b30
|
| 3 |
+
size 421004192
|
2_Dense/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c17ee3691d073d45b71c401ec2bf15c93cd0fee61cd18c2e0502783e35d47ba1
|
| 3 |
+
size 2362560
|