Instructions to use pfnet/plamo-2-translate-eval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pfnet/plamo-2-translate-eval 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="pfnet/plamo-2-translate-eval", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("pfnet/plamo-2-translate-eval", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Support transformers>=4.56
#3
by Alnusjaponica - opened
This PR updates modeling_plamo.py to support transformers>=4.56
This PR updates modeling_plamo.py to support transformers>=4.56
Alnusjaponica changed pull request status to open
This pull request consolidates and applies the following pull requests from the pfnet/plamo-2-1b repository:
https://huggingface.co/pfnet/plamo-2-1b/discussions/7
https://huggingface.co/pfnet/plamo-2-1b/discussions/9
https://huggingface.co/pfnet/plamo-2-1b/discussions/11
yhirokawa changed pull request status to merged