Instructions to use Cainiao-AI/G2PTL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cainiao-AI/G2PTL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Cainiao-AI/G2PTL", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Cainiao-AI/G2PTL", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chn_2_code.pkl from Cainiao-AI/G2PTL: direct link, hf CLI and curl.
- Browser
- Download file 6.04 MB
-
https://huggingface.co/Cainiao-AI/G2PTL/resolve/refs%2Fpr%2F2/chn_2_code.pkl
- Command line
-
hf download hf://Cainiao-AI/G2PTL@refs/pr/2/chn_2_code.pkl
-
curl -L -o chn_2_code.pkl https://huggingface.co/Cainiao-AI/G2PTL/resolve/refs%2Fpr%2F2/chn_2_code.pkl
6.04 MB
- Xet hash:
- 00c1ec791b4fe3ca6581298d728a66f049afb91b70cded4e5b5e2039a8fad6bd
- Size of remote file:
- 6.04 MB
- SHA256:
- 2850ae4e9d3ad005d519d2e1d3e7916b1a8fab7884ef9ad88da62d8159673ee2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.