Instructions to use WindyTranslate/translate-cpp-cpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WindyTranslate/translate-cpp-cpp with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="WindyTranslate/translate-cpp-cpp")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("WindyTranslate/translate-cpp-cpp") model = AutoModelForSeq2SeqLM.from_pretrained("WindyTranslate/translate-cpp-cpp", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download target.spm from WindyTranslate/translate-cpp-cpp: direct link, hf CLI and curl.
- Browser
- Download file 831 kB
-
https://huggingface.co/WindyTranslate/translate-cpp-cpp/resolve/f7f88dbc2c70a97da423e25cd9fcb830aeda7949/target.spm
- Command line
-
hf download hf://WindyTranslate/translate-cpp-cpp@f7f88dbc2c70a97da423e25cd9fcb830aeda7949/target.spm
-
curl -L -o target.spm https://huggingface.co/WindyTranslate/translate-cpp-cpp/resolve/f7f88dbc2c70a97da423e25cd9fcb830aeda7949/target.spm
831 kB
- Xet hash:
- e3194557675c724359a8bd2821477eff2273ef4f86feb089cbf04e0d88ba0153
- Size of remote file:
- 831 kB
- SHA256:
- d77f1367469313d52b0d39f4ab41fc9cf8ffb90f21802742939265b39c2bf082
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.