Instructions to use haoranxu/ALMA-13B-R with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use haoranxu/ALMA-13B-R with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="haoranxu/ALMA-13B-R")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("haoranxu/ALMA-13B-R") model = AutoModelForCausalLM.from_pretrained("haoranxu/ALMA-13B-R") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use haoranxu/ALMA-13B-R with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "haoranxu/ALMA-13B-R" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "haoranxu/ALMA-13B-R", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/haoranxu/ALMA-13B-R
- SGLang
How to use haoranxu/ALMA-13B-R with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "haoranxu/ALMA-13B-R" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "haoranxu/ALMA-13B-R", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "haoranxu/ALMA-13B-R" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "haoranxu/ALMA-13B-R", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use haoranxu/ALMA-13B-R with Docker Model Runner:
docker model run hf.co/haoranxu/ALMA-13B-R
Is there any comparison with Google's MADLAD-400?
I did not see any comparison with Google's MADLAD-400 10B model but do you consider any evaluation against it?
It is a Seq2Seq model so a bit different architecture but it should be interesting to get the results as the parameters size is relatively similar.
Here is the HuggingFace model: https://huggingface.co/google/madlad400-10b-mt
Thanks for your suggestion! We will include the results of MADLAD-400 10B as soon as possible!
Hi, we have tested MADLAD-400 10B on both WMT'23 and WMT'22. We list the averaged results here in advance and will show detailed results in our next version of arxiv.
WMT 23:
| BLEU | COMET22 | COMETkiwi22 | COMET-kiwi-10B | XCOMET-10B | |
|---|---|---|---|---|---|
| ALMA-13B-R | 30.75 | 84.04 | 80.55 | 78.97 | 89.74 |
| MADLAD-10B | 33.33 | 81.48 | 77.87 | 72.02 | 84.84 |
WMT 22:
| xx-en | en-xx | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| BLEU | COMET22 | COMETkiwi22 | COMET-kiwi-10B | XCOMET-10B | BLEU | COMET22 | COMETkiwi22 | COMET-kiwi-10B | XCOMET-10B | |
| ALMA-R | 35.45 | 85.21 | 81.33 | 82.43 | 89.11 | 27.03 | 87.74 | 83.34 | 85.74 | 94.05 |
| MADLAD-10B | 37.45 | 84.50 | 80.48 | 80.51 | 87.18 | 33.85 | 85.42 | 80.89 | 79.46 | 89.10 |
Thank you very much!
