Instructions to use chestnutlzj/ChatLaw-Text2Vec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chestnutlzj/ChatLaw-Text2Vec with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("chestnutlzj/ChatLaw-Text2Vec") model = AutoModel.from_pretrained("chestnutlzj/ChatLaw-Text2Vec", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download modules.json from chestnutlzj/ChatLaw-Text2Vec: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/chestnutlzj/ChatLaw-Text2Vec/resolve/main/modules.json
- Command line
-
hf download hf://chestnutlzj/ChatLaw-Text2Vec/modules.json
-
curl -L -o modules.json https://huggingface.co/chestnutlzj/ChatLaw-Text2Vec/resolve/main/modules.json
229 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| } | |
| ] |