CAT-Translate-3.3b

1
1
llama
by
cyberagent
Language Model
OTHER
3.3B params
New
1 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
8GB+ RAM
Mobile
Laptop
Server
Quick Summary

AI model with specialized capabilities.

Device Compatibility

Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
4GB+ RAM

Code Examples

Usagepythontransformers
from transformers import pipeline

# Load the model
chat_pipeline = pipeline("text-generation", model="CyberAgent/CAT-Translate-3.3b")

# Define the prompt template
prompt = "Translate the following {src_lang} text into {tgt_lang}.\n\n{src_text}"

# Example: Japanese to English
src_lang = "Japanese"
tgt_lang = "English"
src_text = "đŸˆăŻăšăŠă‚‚ă‹ă‚ă„ă„ăźă€‚ăŠăŠăŠăŒăŸă‚‹ăăŠă”ă‚ă”ă‚ăȘぼ。"

user_input = [{"role": "user", "content": prompt.format(src_lang=src_lang, tgt_lang=tgt_lang, src_text=src_text)}]

response = chat_pipeline(user_input, max_new_tokens=512)

print("-" * 20)
print("Source Text:")
print(src_text)
print("Translation:")
print(response[0]['generated_text'][-1]['content'])

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.