Instructions to use litert-community/d1-3B-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/d1-3B-LiteRT with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download examples/run_example.expected.json from litert-community/d1-3B-LiteRT: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/litert-community/d1-3B-LiteRT/resolve/main/examples/run_example.expected.json
- Command line
-
hf download hf://litert-community/d1-3B-LiteRT/examples/run_example.expected.json
-
curl -L -o run_example.expected.json https://huggingface.co/litert-community/d1-3B-LiteRT/resolve/main/examples/run_example.expected.json
1.74 kB
| { | |
| "what": "the answers examples/run_example.py --check compares with: the provider's code (LiquidAI/d1-3B at revision da1fe36a) in float32 on the CPU, one row per question (the reference of every check of this conversion), and the host's refusal of a row longer than its largest graph", | |
| "tolerance_abs_dp": 1e-05, | |
| "requests": { | |
| "text": { | |
| "record": "card_text_001", | |
| "input_tokens": 116, | |
| "route": { | |
| "route": "pair", | |
| "Ls": 64, | |
| "Lq": 64 | |
| }, | |
| "questions": { | |
| "refund": { | |
| "type": "noul", | |
| "keys": [ | |
| "true", | |
| "false" | |
| ], | |
| "probabilities": [ | |
| 0.9896227782182223, | |
| 0.010377221781777617 | |
| ], | |
| "argmax_key": "true" | |
| }, | |
| "team": { | |
| "type": "choice", | |
| "keys": [ | |
| "billing", | |
| "technical", | |
| "fraud" | |
| ], | |
| "probabilities": [ | |
| 0.9835052519734202, | |
| 0.010646890881320634, | |
| 0.00584785714525919 | |
| ], | |
| "argmax_key": "billing" | |
| }, | |
| "urgency": { | |
| "type": "score", | |
| "keys": [ | |
| "0", | |
| "1", | |
| "2" | |
| ], | |
| "probabilities": [ | |
| 0.33857654895935546, | |
| 0.5674439412957162, | |
| 0.09397950974492834 | |
| ], | |
| "argmax_key": "1" | |
| } | |
| } | |
| }, | |
| "picture": { | |
| "record": "card_cats_001", | |
| "input_tokens": 271, | |
| "route": { | |
| "route": "row", | |
| "L": 512 | |
| }, | |
| "questions": { | |
| "cats": { | |
| "type": "choice", | |
| "keys": [ | |
| "one", | |
| "two", | |
| "more" | |
| ], | |
| "probabilities": [ | |
| 0.00613035890381215, | |
| 0.9853197075651394, | |
| 0.008549933531048414 | |
| ], | |
| "argmax_key": "two" | |
| } | |
| } | |
| }, | |
| "refused": { | |
| "error": "RowTooLong", | |
| "message": "a row of 18958 tokens is longer than the largest graph (4096)", | |
| "row_tokens": 18958 | |
| } | |
| } | |
| } | |