Run this model with HF Jobs

Run leia-llm/Leia-Swallow-13b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/leia-llm/Leia-Swallow-13b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/leia-llm/Leia-Swallow-13b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/leia-llm/Leia-Swallow-13b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/leia-llm/Leia-Swallow-13b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Leia-Swallow-13B

LEIA is a training technique for autoregressive LLMs that effectively improves their performance in languages other than English by enhancing cross-lingual knowledge transfer from English to a target language. This model is constructed by applying LEIA to Swallow, a Japanese-English bilingual LLM based on LLaMA 2. The model achieves enhanced performance on four out of six Japanese question answering benchmarks and equivalent performance on the remaining two, as reported below.

Please refer to our paper or blog post (in Japanese) for further technical details.

Model List

Empirical Results

The model is assessed using the following six question answering benchmarks:

  • X-CODAH
  • X-CSQA
  • JCommonsenseQA
  • NIILC
  • JEMHopQA
  • JAQKET v2
Model X-CODAH X-CSQA JCommonsenseQA NIILC JEMHopQA JAQKET v2
Swallow 43.3 41.8 89.3 64.1 50.6 88.9
LEIA 44.0 41.9 89.3 65.8 50.6 89.6

For further details of this experiment, please refer to our paper.

Contributors

  • Ikuya Yamada (Studio Ousia, RIKEN)
  • Ryokan Ri (LY Corporation, SB Intuitions)
Downloads last month
25
Safetensors
Model size
13B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for leia-llm/Leia-Swallow-13b

Quantizations
3 models

Paper for leia-llm/Leia-Swallow-13b