How to use Ba2han/muon-translation-prototype 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="Ba2han/muon-translation-prototype")
# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/muon-translation-prototype") model = AutoModelForCausalLM.from_pretrained("Ba2han/muon-translation-prototype")
How to use Ba2han/muon-translation-prototype with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ba2han/muon-translation-prototype to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ba2han/muon-translation-prototype to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ba2han/muon-translation-prototype to start chatting
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Ba2han/muon-translation-prototype", max_seq_length=2048, )
The community tab is the place to discuss and collaborate with the HF community!