Instructions to use ArthurZ/d3-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ArthurZ/d3-lite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="ArthurZ/d3-lite")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ArthurZ/d3-lite", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download decision_test.json from ArthurZ/d3-lite: direct link, hf CLI and curl.
- Browser
- Download file 3.42 kB
-
https://huggingface.co/ArthurZ/d3-lite/resolve/main/decision_test.json
- Command line
-
hf download hf://ArthurZ/d3-lite/decision_test.json
-
curl -L -o decision_test.json https://huggingface.co/ArthurZ/d3-lite/resolve/main/decision_test.json
3.42 kB
| {"model": "vllm-sr/d3-lite", "request": {"state": {"customer": "Lena", "message": "I was charged twice for my order and I want my money back today."}, "questions": {"refund": {"type": "noul", "instructions": "Does the customer ask for a refund?"}, "spam": {"type": "noul", "instructions": "Is this spam?", "criteria": {"true": "Unsolicited ads", "false": "A real message"}}, "tone": {"type": "choice", "instructions": "What is the tone?", "criteria": {"calm": "Polite", "angry": null, "sad": "Upset, not angry"}}, "urgency": {"type": "score", "instructions": "How urgent is it?", "criteria": ["Can wait", "This week", "Today", "Now"]}}}, "sequences": [{"input_ids": [248045, 8678, 198, 2523, 513, 264, 5307, 4560, 13, 18307, 279, 1528, 430, 795, 11, 524, 430, 10895, 13, 4310, 279, 3296, 321, 1396, 2904, 11, 1179, 9559, 440, 1132, 279, 1970, 314, 279, 1786, 2904, 13, 248046, 198, 248045, 846, 198, 1349, 25, 198, 4754, 10726, 763, 328, 43, 6933, 487, 328, 1927, 763, 328, 40, 557, 11102, 10598, 364, 821, 1906, 321, 353, 1318, 821, 3117, 1142, 3242, 1149, 92, 271, 14162, 25, 198, 20810, 279, 5813, 2466, 364, 264, 20325, 30, 271, 3670, 25, 198, 32, 25, 2233, 593, 867, 198, 33, 25, 7179, 593, 804, 271, 20206, 440, 1132, 279, 1970, 314, 279, 1786, 2904, 13, 248046, 198, 248045, 74455, 198, 248068, 271, 248069, 271], "marks": [119]}, {"input_ids": [248045, 8678, 198, 2523, 513, 264, 5307, 4560, 13, 18307, 279, 1528, 430, 795, 11, 524, 430, 10895, 13, 4310, 279, 3296, 321, 1396, 2904, 11, 1179, 9559, 440, 1132, 279, 1970, 314, 279, 1786, 2904, 13, 248046, 198, 248045, 846, 198, 1349, 25, 198, 4754, 10726, 763, 328, 43, 6933, 487, 328, 1927, 763, 328, 40, 557, 11102, 10598, 364, 821, 1906, 321, 353, 1318, 821, 3117, 1142, 3242, 1149, 92, 271, 14162, 25, 198, 3742, 411, 24523, 30, 271, 3670, 25, 198, 32, 25, 357, 1865, 1876, 198, 33, 25, 58986, 87965, 13346, 271, 20206, 440, 1132, 279, 1970, 314, 279, 1786, 2904, 13, 248046, 198, 248045, 74455, 198, 248068, 271, 248069, 271], "marks": [115]}, {"input_ids": [248045, 8678, 198, 2523, 513, 264, 5307, 4560, 13, 18307, 279, 1528, 430, 795, 11, 524, 430, 10895, 13, 4310, 279, 3296, 321, 1396, 2904, 11, 1179, 9559, 440, 1132, 279, 1970, 314, 279, 1786, 2904, 13, 248046, 198, 248045, 846, 198, 1349, 25, 198, 4754, 10726, 763, 328, 43, 6933, 487, 328, 1927, 763, 328, 40, 557, 11102, 10598, 364, 821, 1906, 321, 353, 1318, 821, 3117, 1142, 3242, 1149, 92, 271, 14162, 25, 198, 3710, 369, 279, 15754, 30, 271, 3670, 25, 198, 32, 25, 18717, 25, 3526, 614, 198, 33, 25, 17960, 198, 34, 25, 12065, 25, 3038, 723, 11, 524, 17960, 271, 20206, 440, 1132, 279, 1970, 314, 279, 1786, 2904, 13, 248046, 198, 248045, 74455, 198, 248068, 271, 248069, 271], "marks": [125]}, {"input_ids": [248045, 8678, 198, 2523, 513, 264, 5307, 4560, 13, 18307, 279, 1528, 430, 795, 11, 524, 430, 10895, 13, 4310, 279, 3296, 321, 1396, 2904, 11, 1179, 9559, 440, 1132, 279, 1970, 314, 279, 1786, 2904, 13, 248046, 198, 248045, 846, 198, 1349, 25, 198, 4754, 10726, 763, 328, 43, 6933, 487, 328, 1927, 763, 328, 40, 557, 11102, 10598, 364, 821, 1906, 321, 353, 1318, 821, 3117, 1142, 3242, 1149, 92, 271, 14162, 25, 198, 4199, 32556, 369, 424, 30, 271, 3670, 25, 198, 32, 25, 2885, 3655, 198, 33, 25, 1061, 1936, 198, 34, 25, 10875, 198, 35, 25, 4543, 271, 20206, 440, 1132, 279, 1970, 314, 279, 1786, 2904, 13, 248046, 198, 248045, 74455, 198, 248068, 271, 248069, 271], "marks": [122]}]} |