woctordho/autotrain-data-lojban-translation
Preview • Updated • 14
How to use woctordho/lojban-translation 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="woctordho/lojban-translation") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("woctordho/lojban-translation", dtype="auto")Configuration Parsing Warning:Config file config.json cannot be fetched (too big)
Configuration Parsing Warning:Config file tokenizer_config.json cannot be fetched (too big)
This is a very early experiment of Lojban machine translation. Nowadays LLMs can do better than this.