Feature Extraction
Transformers
Safetensors
pivot
decision-making
classification
scoring
custom_code
Run this model with HF Jobs
Run Q1z/Pivot on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Q1z/Pivot. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Q1z/Pivot on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Q1z/Pivot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Q1z/Pivot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Q1z/Pivot", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Q1z/Pivot", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download examples/quickstart.py from Q1z/Pivot: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/Q1z/Pivot/resolve/main/examples/quickstart.py
- Command line
-
hf download hf://Q1z/Pivot/examples/quickstart.py
-
curl -L -o quickstart.py https://huggingface.co/Q1z/Pivot/resolve/main/examples/quickstart.py
637 Bytes
| """One context, multiple candidate answers; no text generation.""" | |
| import torch | |
| from transformers import AutoModel, AutoTokenizer | |
| MODEL = "Q1z/Pivot" | |
| tokenizer = AutoTokenizer.from_pretrained(MODEL, trust_remote_code=True) | |
| model = AutoModel.from_pretrained(MODEL, trust_remote_code=True, dtype=torch.float32).eval() | |
| context = "CONTEXT:\nA customer disputes an invoice and asks for a billing correction." | |
| options = [ | |
| "route to billing support", | |
| "route to technical support", | |
| "route to sales", | |
| ] | |
| decision = model.choose(tokenizer, context, options) | |
| print(decision) # choice, index, probabilities in supplied candidate order | |