Translation
Transformers
Safetensors
llama
text-generation
multilingual
lora
astheraltranslate
text-generation-inference
Instructions to use SEE7/AstheralTranslate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SEE7/AstheralTranslate 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="SEE7/AstheralTranslate")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SEE7/AstheralTranslate") model = AutoModelForCausalLM.from_pretrained("SEE7/AstheralTranslate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download deployment_test.json from SEE7/AstheralTranslate: direct link, hf CLI and curl.
- Browser
- Download file 1.52 kB
-
https://huggingface.co/SEE7/AstheralTranslate/resolve/main/deployment_test.json
- Command line
-
hf download hf://SEE7/AstheralTranslate/deployment_test.json
-
curl -L -o deployment_test.json https://huggingface.co/SEE7/AstheralTranslate/resolve/main/deployment_test.json
1.52 kB
| { | |
| "status": "complete", | |
| "model": "SEE7/AstheralTranslate", | |
| "weights_revision": "f9e5dcb2581f10f4646c5d9cf83836723adf08f5", | |
| "space_revision": "88a2f11a67801228fe3cebafe63795399806ec89", | |
| "space_hardware": "zero-a10g", | |
| "browser_tests": { | |
| "targets": [ | |
| "German", | |
| "French", | |
| "Spanish", | |
| "Italian", | |
| "Portuguese" | |
| ], | |
| "routing": "passed", | |
| "language_persistence": "passed", | |
| "browser_errors": [] | |
| }, | |
| "live_translations": [ | |
| { | |
| "target": "German", | |
| "source": "The train leaves at eight in the morning.", | |
| "translation": " Der Zug fährt um acht Uhr morgens ab.", | |
| "seconds": 6.315353714000594 | |
| }, | |
| { | |
| "target": "French", | |
| "source": "The train leaves at eight in the morning.", | |
| "translation": " Le train part à huit heures du matin.", | |
| "seconds": 1.0676599689995783 | |
| }, | |
| { | |
| "target": "Spanish", | |
| "source": "The train leaves at eight in the morning.", | |
| "translation": " El tren sale a las ocho de la mañana.", | |
| "seconds": 0.9643799550003678 | |
| }, | |
| { | |
| "target": "Italian", | |
| "source": "The train leaves at eight in the morning.", | |
| "translation": " Il treno parte alle otto del mattino.", | |
| "seconds": 1.1017699929998344 | |
| }, | |
| { | |
| "target": "Portuguese", | |
| "source": "The train leaves at eight in the morning.", | |
| "translation": " O comboio parte às oito da manhã.", | |
| "seconds": 1.028976220000004 | |
| } | |
| ], | |
| "owner_quota_verified": true | |
| } |