Instructions to use Toc/toc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Toc/toc with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Toc/toc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| import csv | |
| from io import StringIO | |
| from typing import List | |
| def split_path_list(path_list: str) -> List[str]: | |
| pl = [] | |
| with StringIO() as f: | |
| f.write(path_list) | |
| f.seek(0) | |
| for r in csv.reader(f): | |
| pl += r | |
| return pl | |