How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "MaLA-LM/lucky52-bloom-7b1-no-2"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "MaLA-LM/lucky52-bloom-7b1-no-2",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/MaLA-LM/lucky52-bloom-7b1-no-2
Quick Links

Model Description

This HF repository hosts instruction fine-tuned multilingual BLOOM model using the parallel instruction dataset called Bactrain-X in 52 languages. We progressively add a language during instruction fine-tuning at each time, and train 52 models in total. Then, we evaluate those models in three multilingual benchmarks.

Please refer to our paper for more details.

  • Base model: BLOOM 7B1
  • Instruction languages: English, Chinese
  • Instruction language codes: en, zh
  • Training method: full-parameter fine-tuning.

Usage

The model checkpoint should be loaded using transformers library.

from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("MaLA-LM/lucky52-bloom-7b1-no-2")
model = AutoModelForCausalLM.from_pretrained("MaLA-LM/lucky52-bloom-7b1-no-2")

Citation

@inproceedings{ji2025lucky52,
      title={How Many Languages Make Good Multilingual Instruction Tuning? A Case Study on BLOOM}, 
      author={Shaoxiong Ji and Pinzhen Chen},
      year={2025},
      booktitle={Proceedings of COLING},
      url={https://arxiv.org/abs/2404.04850}, 
}
Downloads last month
6
Safetensors
Model size
8B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train MaLA-LM/lucky52-bloom-7b1-no-2

Collection including MaLA-LM/lucky52-bloom-7b1-no-2

Paper for MaLA-LM/lucky52-bloom-7b1-no-2