Instructions to use quancute/new_zero_COT_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use quancute/new_zero_COT_model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("quancute/new_zero_COT_model") 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 quancute/new_zero_COT_model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("quancute/new_zero_COT_model") model = AutoModel.from_pretrained("quancute/new_zero_COT_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from quancute/new_zero_COT_model: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/quancute/new_zero_COT_model/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://quancute/new_zero_COT_model/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/quancute/new_zero_COT_model/resolve/main/tokenizer_config.json
1.14 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "64000": { | |
| "content": "<mask>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "mask_token": "<mask>", | |
| "model_max_length": 256, | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "tokenizer_class": "PhobertTokenizer", | |
| "unk_token": "<unk>" | |
| } | |