SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.16039 · EMNLP · 2023

Okapi: Instruction-tuned Large Language Models in Multiple Languages with Reinforcement Learning from Human Feedback

Ryan Rossi, Franck Dernoncourt, Thien Nguyen, Viet Dac, Nghia Ngo, Chien Van Nguyen, Thuat Nguyen

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2307.16039.json · badge: /api/ran/2307.16039.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
nlp-uoregon/mlmm-evaluation community (classifier label)
classifier basis not recorded on the link
8 ran · 2 no recorded run
nlp-uoregon/Okapi community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
mean Ran
ran, violated the contract we drafted
nlp-uoregon/mlmm-evaluation/lm_eval/metrics.py
code served (permissive licence) · get_code("0928f497e20fb443")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:25:48Z). If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function 'mean' takes an array-like object and computes the average
# It uses: sum(arr) and len(arr)
# So arr needs to support sum() and len()

# Create a simple list of numbers
arr = [1.0, 2.0, 3.0, 4.0, 5.0]

ARGS = {
    "arr": arr
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
escaped_split Ran
ran; our contract draft was wrong, not the code
nlp-uoregon/mlmm-evaluation/lm_eval/utils.py
code served (permissive licence) · get_code("57e732507bad40db")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

# The function escaped_split takes text (a string), sep_char (a single character string),
# and maxsplit (an integer). Let's construct valid arguments.

ARGS = {
    "text": "hello\\,world,foo\\,bar,baz",
    "sep_char": ",",
    "maxsplit": -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_result Ran
ran, honoured the contract we drafted
nlp-uoregon/mlmm-evaluation/lm_eval/models/gpt3.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from MrGGLS/BlockPruner, is pointer only (licence: NONE) · get_code("d253589f2c78dad0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from MrGGLS/BlockPruner, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

group Ran
ran; our contract draft was wrong, not the code
nlp-uoregon/mlmm-evaluation/lm_eval/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from hdong920/griffin, is pointer only (licence: NONE) · get_code("359c35fdcd7a0ee5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from hdong920/griffin, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

json_serial Ran
ran; our contract draft was wrong, not the code
nlp-uoregon/mlmm-evaluation/lm_eval/decontamination/archiver.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from hdong920/griffin, is pointer only (licence: NONE) · get_code("d3ade8d49512a76b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from hdong920/griffin, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pop_stddev Ran
ran; our contract draft was wrong, not the code
nlp-uoregon/mlmm-evaluation/lm_eval/metrics.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from MrGGLS/BlockPruner, is pointer only (licence: NONE) · get_code("518b2201c66c2ad3")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from MrGGLS/BlockPruner, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_stddev Ran
ran; our contract draft was wrong, not the code
nlp-uoregon/mlmm-evaluation/lm_eval/metrics.py
code served (permissive licence) · get_code("d40f0123e8a8f5c0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

def mean(arr):
    return sum(arr) / len(arr)

def sample_stddev(arr):
    mu = mean(arr)
    return math.sqrt(sum([(x - mu) ** 2 for x in arr]) / (len(arr) - 1))

# Setup code
arr = [1.5, 2.3, 3.1, 4.2, 5.0]

ARGS = {
    "arr": arr
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
simple_parse_args_string Ran
ran; our contract draft was wrong, not the code
nlp-uoregon/mlmm-evaluation/lm_eval/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from hdong920/griffin, is pointer only (licence: NONE) · get_code("cd999ad59caf84a7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from hdong920/griffin, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_reward_fn Not yet run
unverified (harvested, no recorded run)
nlp-uoregon/Okapi/rl_training.py
code served (permissive licence) · get_code("7cae284c2ed4ca9e")
How it ran

no invocation recorded.

make_table Not yet run
unverified (harvested, no recorded run)
nlp-uoregon/mlmm-evaluation/lm_eval/evaluator.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from princeton-nlp/QuRating, is pointer only (licence: NONE) · get_code("9d95c14130837ee4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from princeton-nlp/QuRating, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

stop_sequences_criteria Not yet run
unverified (harvested, no recorded run)
nlp-uoregon/mlmm-evaluation/lm_eval/models/huggingface.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from cordercorder/quant_eval, is pointer only (licence: NONE) · get_code("069ffbe9aadaa2ae")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from cordercorder/quant_eval, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 10 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 10 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
mean 12 other papers
5 dated earlier, 7 later
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2212.11702 (2022-12)
Robust Meta-Representation Learning via Global Label Inference and Classification
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
and 9 more not named here
escaped_split 9 other papers
2 dated earlier, 7 later
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2305.14493 (2023-05)
Do prompt positions really matter?
2310.05620 (2023-10)
LAiW: A Chinese Legal Large Language Models Benchmark
and 6 more not named here
make_table 9 other papers
2 dated earlier, 7 later
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
2310.05620 (2023-10)
LAiW: A Chinese Legal Large Language Models Benchmark
and 6 more not named here
pop_stddev 9 other papers
2 dated earlier, 7 later
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
2310.05620 (2023-10)
LAiW: A Chinese Legal Large Language Models Benchmark
and 6 more not named here
sample_stddev 9 other papers
3 dated earlier, 6 later
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
2306.09200 (2023-06)
ChessGPT: Bridging Policy Learning and Language Modeling
and 6 more not named here
group 8 other papers
3 dated earlier, 5 later
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
and 5 more not named here
get_result 5 other papers
3 dated earlier, 2 later
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
and 2 more not named here
simple_parse_args_string 5 other papers
1 dated earlier, 4 later
2305.14493 (2023-05)
Do prompt positions really matter?
2310.05620 (2023-10)
LAiW: A Chinese Legal Large Language Models Benchmark
2402.09398 (2024-02)
Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inference
and 2 more not named here
stop_sequences_criteria 4 other papers
1 dated earlier, 3 later
2305.14493 (2023-05)
Do prompt positions really matter?
2402.16775 (2024-02)
A Comprehensive Evaluation of Quantization Strategies for Large Language Models
2025.naacl-long.237 (2025 (year only))
What We Talk About When We Talk About LMs: Implicit Paradigm Shifts and the Ship of Language Models
and 1 more not named here
json_serial 1 other paper
1 later
2404.01365 (2024-04)
Prompt-prompted Adaptive Structured Pruning for Efficient LLM Generation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

A key technology for large language models (LLMs) involves instruction tuning that helps align the models' responses with human expectations to realize impressive learning abilities. Two major approaches for instruction tuning characterize supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF), which are applied to produce the best commercial LLMs. To improve the accessibility of LLMs, various instruction-tuned open-source LLMs have also been introduced recently. However, existing open-source LLMs have only been instruction-tuned for English and a few popular languages, thus hindering their accessibility to many other languages in the world. In addition, SFT has been used as the only approach to instruction-tune open-source LLMs for multiple languages. This has left a significant gap for fine-tuned LLMs based on RLHF in diverse languages and raised important questions on how RLHF can boost the performance of multilingual instruction tuning. To overcome this issue, we present Okapi, the first system with instruction-tuned LLMs based on RLHF for multiple languages. Okapi introduces instruction and response-ranked data in 26 diverse languages to facilitate the experiments and development of future multilingual LLM research. We also present benchmark datasets to enable the evaluation of generative LLMs in multiple languages. Our experiments demonstrate the advantages of RLHF for multilingual instruction over SFT for different base models and datasets. Our framework with created resources, fine-tuned LLMs, interaction scripts are released at https:// github.com/nlp-uoregon/Okapi. A demo video to show our framework can also be found at: https://youtu.be/QFV2fkPwvi0.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2307.16039")
get_code_for_paper("2307.16039")
have("2307.16039")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2307.16039.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2307.16039.svg)](https://syntology.ai/paper/2307.16039)

Connect an agent — have() is free.