Instructions to use SLPG/Biomedical_French_to_English with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SLPG/Biomedical_French_to_English 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="SLPG/Biomedical_French_to_English")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SLPG/Biomedical_French_to_English", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,6 +23,15 @@ library_name: transformers
|
|
| 23 |
|
| 24 |
</div>
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
## Citation
|
| 27 |
|
| 28 |
**If you use our model, kindly cite our [paper](https://hal.science/hal-03430610/document)**:
|
|
|
|
| 23 |
|
| 24 |
</div>
|
| 25 |
|
| 26 |
+
## Use this Model
|
| 27 |
+
# Load model directly
|
| 28 |
+
from transformers import AutoModel
|
| 29 |
+
model = AutoModel.from_pretrained("SLPG/Biomedical_French_to_English")
|
| 30 |
+
# Use a pipeline as a high-level helper
|
| 31 |
+
from transformers import pipeline
|
| 32 |
+
|
| 33 |
+
pipe = pipeline("translation", model="SLPG/Biomedical_French_to_English")
|
| 34 |
+
|
| 35 |
## Citation
|
| 36 |
|
| 37 |
**If you use our model, kindly cite our [paper](https://hal.science/hal-03430610/document)**:
|