SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.10252 · 2023

LMTuner: An user-friendly and highly-integrable Training Framework for fine-tuning Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run), 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/2308.10252.json · badge: /api/ran/2308.10252.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
wengsyx/lmtuner canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
add_bminf_args Ran
ran; our contract draft was wrong, not the code
wengsyx/lmtuner/LMTuner/initialize.py
code served (permissive licence) · get_code("945d1222f0c75dab")
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 ArgumentParser. The image it ran in was not recorded. If your copy returns the same type 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 argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal parser that can accept argument groups
parser = argparse.ArgumentParser()

# ARGS dictionary mapping the parameter 'parser' to an ArgumentParser instance
ARGS = {
    'parser': parser
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
add_evaluation_args Ran
ran; our contract draft was wrong, not the code
wengsyx/lmtuner/LMTuner/argments.py
code served (permissive licence) · get_code("5f10499136fa626e")
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 ArgumentParser. The image it ran in was not recorded. If your copy returns the same type 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 argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal argument parser
parser = argparse.ArgumentParser()

# The function add_evaluation_args takes a parser as argument
# It adds argument groups and arguments to the parser, then returns it
# We just need to pass a valid ArgumentParser instance

ARGS = {
    'parser': argparse.ArgumentParser()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
add_initialization_args Ran
ran; our contract draft was wrong, not the code
wengsyx/lmtuner/LMTuner/initialize.py
code served (permissive licence) · get_code("452108567c3e1c47")
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 ArgumentParser. The image it ran in was not recorded. If your copy returns the same type 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 argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal argument parser
parser = argparse.ArgumentParser()

# The function takes a parser and adds arguments to it
# We need to pass a valid ArgumentParser instance
ARGS = {
    'parser': parser
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
add_model_config_args Ran
ran; our contract draft was wrong, not the code
wengsyx/lmtuner/LMTuner/argments.py
code served (permissive licence) · get_code("2f865434f7731954")
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 ArgumentParser. The image it ran in was not recorded. If your copy returns the same type 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 argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal argument parser
parser = argparse.ArgumentParser()

# The function adds arguments to this parser
# We need to call the function to set up the parser, then extract the defaults
# Since the function returns the parser, we can use it directly

def add_model_config_args(parser):
    """Model arguments"""
    group = parser.add_argument_group('model', 'model configuration')
    group.add_argument('--num-layers', type=int, default=6, help='num of layers')
    group.add_argument('--hidden-size', type=int, default=1024, help='transformer hidden size')
    group.add_argument('--num-attention-heads', type=int, default=16, help='num of transformer attention heads')
    group.add_argument('--vocab-size', type=int, default=100, help='vocab size for tokenization. the size of word_embeddings.')
    group.add_argument('--max-sequence-length', type=int, default=512, help='maximum number of position embeddings to use')
    group.add_argument('--layernorm-order', type=str, default='pre', help='choose from "pre", "post", "sandwich".', choices=['post', 'pre', 'sandwich'])
    group.add_argument('--inner-hidden-size', type=int, default=None, help='inner hidden size for transformer FFN, None means 4*hidden-size')
    group.add_argument('--hidden-size-per-attention-head', type=int, default=None)
    group.add_argument('--model-parallel-size', type=int, default=1, help='size of the model parallel. only use if you are an expert.')
    group.add_argument('--skip-init', action='store_true', help='skip model initialization')
    group.add_argument('--use-gpu-initialization', action='store_true', help='initialize model on gpu')
    group.add_argument('--num-multi-query-heads', type=int, default=0, help='use multi-query attention, num of kv groups. 0 means multi-head attention.')
    group.add_argument('--layernorm-epsilon', type=float, default=1e-05, help='layer norm epsilon')
    group.add_argument('--hidden-dropout', type=float, default=0.1, help='dropout probability for hidden state transformer')
    group.add_argument('--attention-dropout', type=float, default=0.1, help='dropout probability for attention weights')
    group.add_argument('--make-vocab-size-divisible-by', type=int, default=128, help='Pad the vocab size to be divisible by this value.This is added for computational efficieny reasons.')
    return parser

# The function takes a parser object and adds argument groups to it
# The only parameter is 'parser' which is an argparse.ArgumentParser instance

ARGS = {
    'parser': argparse.ArgumentParser()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
add_quantization_args Ran
ran; our contract draft was wrong, not the code
wengsyx/lmtuner/LMTuner/initialize.py
code served (permissive licence) · get_code("d431a2ce7d6c2ccc")
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 ArgumentParser. The image it ran in was not recorded. If your copy returns the same type 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 argparse

# Create a minimal argument parser
parser = argparse.ArgumentParser()

# Call the function to add quantization arguments
from argparse import ArgumentParser
parser = ArgumentParser()

# This is the function we need to set up arguments for
def add_quantization_args(parser):
    group = parser.add_argument_group('Quantization')
    group.add_argument('--quantization-bit-width', type=int, default=None)
    group.add_argument('--from-quantized-checkpoint', action='store_true', help='Loading from a quantized checkpoint')
    return parser

# The function takes only one parameter: parser (an argparse.ArgumentParser instance)
ARGS = {
    'parser': ArgumentParser()
}
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 ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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_loss Ran
ran; our contract draft was wrong, not the code
wengsyx/lmtuner/LMTuner/lomo.py
code served (permissive licence) · get_code("883d1dcb15a07e16")
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 Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
from torch.nn import CrossEntropyLoss

torch.manual_seed(0)

# Create small tensors for the function
# logits shape: (batch_size, seq_len, vocab_size)
# After shift: (batch_size, seq_len-1, vocab_size)
batch_size = 2
seq_len = 5
vocab_size = 4

logits = torch.randn(batch_size, seq_len, vocab_size)
labels = torch.randint(0, vocab_size, (batch_size, seq_len))

# Test with clip_loss_value
clip_loss_value = 1.5

ARGS = {
    "logits": logits,
    "labels": labels,
    "clip_loss_value": clip_loss_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, 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
add_training_args Not yet run
unverified (harvested, no recorded run)
wengsyx/lmtuner/LMTuner/argments.py
code served (permissive licence) · get_code("5b8fe7e2a0fa90f5")
How it ran

no invocation recorded.

get_deepspeed Not yet run
unverified (harvested, no recorded run)
wengsyx/lmtuner/LMTuner/deepspeed_file.py
code served (permissive licence) · get_code("299cbd0199712f28")
How it ran

no invocation recorded.

merge_linear_lora Not yet run
unverified (harvested, no recorded run)
wengsyx/lmtuner/LMTuner/lora.py
code served (permissive licence) · get_code("b1c1f222ff2b37fa")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 7 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
get_loss 2 other papers
2 later
2310.10195 (2023-10)
AdaLomo: Low-memory Optimization with Adaptive Learning Rate
2024.findings-acl.742 (2024 (year only))
AdaLomo: Low-memory Optimization with Adaptive Learning Rate
add_bminf_args 1 other paper
1 dated earlier
2210.02414 (2022-10)
GLM-130B: An Open Bilingual Pre-trained Model

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

With the burgeoning development in the realm of large language models (LLMs), the demand for efficient incremental training tailored to specific industries and domains continues to increase. Currently, the predominantly employed frameworks lack modular design, it often takes a lot of coding work to kickstart the training of LLM. To address this, we present "LMTuner", a highly usable, integrable, and scalable system for training LLMs expeditiously and with minimal user-input. LMTuner comprises three main modules - the Interaction, Training, and Inference Modules. We advocate that LMTuner's usability and integrality alleviate the complexities in training large language models. Remarkably, even a novice user could commence training large language models within five minutes. Furthermore, it integrates DeepSpeed frameworks and supports Efficient Fine-Tuning methodologies like Low Rank Adaptation (LoRA), Quantized LoRA (QLoRA), etc., enabling the training of language models scaling from 300M to a whopping 130B parameters using a single server. The LMTuner's homepage (https://wengsyx.github.io/LMTuner/)and screencast video (https://youtu.be/nsXmWOmN3rE) are now publicly available.

For agents

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

get_harvested_code_for_paper("2308.10252")
get_code_for_paper("2308.10252")
have("2308.10252")

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

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

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

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

Connect an agent — have() is free.