Instructions to use Cainiao-AI/TAAS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cainiao-AI/TAAS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Cainiao-AI/TAAS", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Cainiao-AI/TAAS", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -1,11 +1,6 @@
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# -*- coding: utf-8 -*-
|
| 3 |
-
|
| 4 |
-
# @File : utils.py
|
| 5 |
-
# @Author : 刘建林(霜旻)
|
| 6 |
-
# @Email : liujianlin.ljl@alibaba-inc.com
|
| 7 |
-
# @Time : 2022/10/27 下午8:52
|
| 8 |
-
"""
|
| 9 |
import operator
|
| 10 |
import pickle
|
| 11 |
import numpy as np
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
# -*- coding: utf-8 -*-
|
| 3 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
import operator
|
| 5 |
import pickle
|
| 6 |
import numpy as np
|