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 source.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/1398a0e9e7fb60005c53b3dbeb893fa46b3cbae6/source.spm
- Command line
-
hf download hf://WindyTranslate/translate-cpp-cpp@1398a0e9e7fb60005c53b3dbeb893fa46b3cbae6/source.spm
-
curl -L -o source.spm https://huggingface.co/WindyTranslate/translate-cpp-cpp/resolve/1398a0e9e7fb60005c53b3dbeb893fa46b3cbae6/source.spm
831 kB
- Xet hash:
- 84650f60a78f3d63bdad881370042214ccea5eb2f44d327420871be2d393b71d
- Size of remote file:
- 831 kB
- SHA256:
- b0cc6ac66cf8727264edcbbe258acfd3c6b1a9ebc89f0523af41ab7a0570385c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.