How to use from the
Use from the
Transformers library
# 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="LiquidAI/LFM2-350M-ENJP-MT-GGUF")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("LiquidAI/LFM2-350M-ENJP-MT-GGUF", device_map="auto")
Quick Links
Liquid AI
Try LFM β€’ Docs β€’ LEAP β€’ Discord

LFM2-350M-ENJP-MT-GGUF

Based on the LFM2-350M model, this checkpoint has been fine-tuned for near real-time bi-directional Japanese/English translation of short-to-medium inputs.

Find more details in the original model card: https://huggingface.co/LiquidAI/LFM2-350M-ENJP-MT

πŸƒ How to run LFM2

Example usage with llama.cpp:

Translating to English.

llama-cli -hf LiquidAI/LFM2-350M-ENJP-MT-GGUF -sys "Translate to English." -st

Translate to Japanese.

llama-cli -hf LiquidAI/LFM2-350M-ENJP-MT-GGUF -sys "Translate to Japanese." -st

Quantized model.

llama-cli -hf LiquidAI/LFM2-350M-ENJP-MT-GGUF:Q4_0 -sys "Translate to Japanese." -st
Downloads last month
1,944
GGUF
Model size
0.4B params
Architecture
lfm2
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

16-bit

32-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for LiquidAI/LFM2-350M-ENJP-MT-GGUF

Quantized
(5)
this model

Space using LiquidAI/LFM2-350M-ENJP-MT-GGUF 1

Collections including LiquidAI/LFM2-350M-ENJP-MT-GGUF