Instructions to use SlipStream33/phi3-binary-query-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SlipStream33/phi3-binary-query-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="SlipStream33/phi3-binary-query-classifier", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("SlipStream33/phi3-binary-query-classifier", trust_remote_code=True) model = AutoModel.from_pretrained("SlipStream33/phi3-binary-query-classifier", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from SlipStream33/phi3-binary-query-classifier: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/SlipStream33/phi3-binary-query-classifier/resolve/main/chat_template.jinja
- Command line
-
hf download hf://SlipStream33/phi3-binary-query-classifier/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/SlipStream33/phi3-binary-query-classifier/resolve/main/chat_template.jinja
407 Bytes
| {% for message in messages %}{% if message['role'] == 'system' %}{{'<|system|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% elif message['role'] == 'user' %}{{'<|user|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% elif message['role'] == 'assistant' %}{{'<|assistant|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|> | |
| ' }}{% else %}{{ eos_token }}{% endif %} |