SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.18339 · 2023

When MOE Meets LLMs: Parameter Efficient Fine-tuning for Multi-task Medical Applications

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2310.18339.json · badge: /api/ran/2310.18339.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
applied-machine-learning-lab/moelora-peft canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
gelu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
applied-machine-learning-lab/moelora-peft/resources/modeling_chatglm.py
code served (permissive licence) · get_code("43c9688838aff8b2")
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 2, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function gelu takes a single parameter: x
# Looking at the body, x is used in arithmetic operations (multiplication, addition, tanh)
# so it needs to be a tensor

# Create a small tensor for testing
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 2, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:OSError)
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
gelu_impl Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
applied-machine-learning-lab/moelora-peft/resources/modeling_chatglm.py
code served (permissive licence) · get_code("c8f235d13277facd")
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 2, 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 torch

torch.manual_seed(0)

def gelu_impl(x):
    """OpenAI's gelu implementation."""
    return 0.5 * x * (1.0 + torch.tanh(0.7978845608028654 * x * (1.0 + 0.044715 * x * x)))

# Create a small tensor for input
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 2, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:OSError)
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
llama_apply_rotary_pos_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
applied-machine-learning-lab/moelora-peft/src/MLoRA/peft/tuners/adaption_prompt.py
pointer only (licence: MIT); the stored copy get_code serves, from Eric8932/SAPO, is pointer only (licence: NONE) · get_code("1b3b0b10b6eb22b0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Eric8932/SAPO, 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.

llama_compute_query_states Ran
ran; our contract draft was wrong, not the code
applied-machine-learning-lab/moelora-peft/src/MLoRA/peft/tuners/adaption_prompt.py
pointer only (licence: MIT); the stored copy get_code serves, from zhangwenhao6/PERA, is pointer only (licence: NOASSERTION) · get_code("84584d174a70b559")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhangwenhao6/PERA, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

llama_rotate_half Ran
ran, violated the contract we drafted
applied-machine-learning-lab/moelora-peft/src/MLoRA/peft/tuners/adaption_prompt.py
pointer only (licence: MIT); the stored copy get_code serves, from Eric8932/SAPO, is pointer only (licence: NONE) · get_code("47805bd9ef4bfdd8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Eric8932/SAPO, 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.

load_tf_weights_in_chatglm_6b Not yet run
unverified (harvested, no recorded run)
applied-machine-learning-lab/moelora-peft/resources/modeling_chatglm.py
code served (permissive licence) · get_code("25fd6233234767aa")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 6 later) and 0 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
llama_apply_rotary_pos_emb 6 other papers
1 dated earlier, 5 later
2307.02053 (2023-07)
Flacuna: Unleashing the Problem Solving Power of Vicuna using FLAN Fine-Tuning
2403.08350 (2024-03)
CoIN: A Benchmark of Continual Instruction tuNing for Multimodel Large Language Model
2025.emnlp-main.609 (2025 (year only))
ModalPrompt: Towards Efficient Multimodal Continual Instruction Tuning with Dual-Modality Guided Prompt
and 3 more not named here
llama_compute_query_states 6 other papers
1 dated earlier, 5 later
2307.02053 (2023-07)
Flacuna: Unleashing the Problem Solving Power of Vicuna using FLAN Fine-Tuning
2403.08350 (2024-03)
CoIN: A Benchmark of Continual Instruction tuNing for Multimodel Large Language Model
2025.emnlp-main.609 (2025 (year only))
ModalPrompt: Towards Efficient Multimodal Continual Instruction Tuning with Dual-Modality Guided Prompt
and 3 more not named here
llama_rotate_half 6 other papers
1 dated earlier, 5 later
2307.02053 (2023-07)
Flacuna: Unleashing the Problem Solving Power of Vicuna using FLAN Fine-Tuning
2403.08350 (2024-03)
CoIN: A Benchmark of Continual Instruction tuNing for Multimodel Large Language Model
2025.emnlp-main.609 (2025 (year only))
ModalPrompt: Towards Efficient Multimodal Continual Instruction Tuning with Dual-Modality Guided Prompt
and 3 more not named here
gelu_impl 4 other papers
2 dated earlier, 2 later
2210.02414 (2022-10)
GLM-130B: An Open Bilingual Pre-trained Model
2307.13528 (2023-07)
FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios
2411.04168 (2024-11)
DiMSUM: Diffusion Mamba - A Scalable and Unified Spatial-Frequency Method for Image Generation
and 1 more not named here
gelu 3 other papers
2 dated earlier, 1 later
2210.02414 (2022-10)
GLM-130B: An Open Bilingual Pre-trained Model
2307.13528 (2023-07)
FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios
2025.findings-acl.583 (2025 (year only))
CitaLaw: Enhancing LLM with Citations in Legal Domain
load_tf_weights_in_chatglm_6b 3 other papers
2 dated earlier, 1 later
2210.02414 (2022-10)
GLM-130B: An Open Bilingual Pre-trained Model
2307.13528 (2023-07)
FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios
2025.findings-acl.583 (2025 (year only))
CitaLaw: Enhancing LLM with Citations in Legal Domain

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-22.

Repositories linked to this paper

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

Abstract

The recent surge in Large Language Models (LLMs) has garnered significant attention across numerous fields. Fine-tuning is often required to fit general LLMs for a specific domain, like the web-based healthcare system. However, two problems arise during fine-tuning LLMs for medical applications. One is the task variety problem, which involves distinct tasks in real-world medical scenarios. The variety often leads to sub-optimal fine-tuning for data imbalance and seesaw problems. Besides, the large amount of parameters in LLMs leads to huge time and computation consumption by fine-tuning. To address these two problems, we propose a novel parameter efficient fine-tuning framework for multi-task medical applications, dubbed as MOELoRA. The designed framework aims to absorb both the benefits of mixture-of-expert (MOE) for multi-task learning and low-rank adaptation (LoRA) for parameter efficient fine-tuning. For unifying MOE and LoRA, we devise multiple experts as the trainable parameters, where each expert consists of a pair of low-rank matrices to retain the small size of trainable parameters. Then, a task-motivated gate function for all MOELoRA layers is proposed, which can control the contributions of each expert and produce distinct parameters for various tasks. We conduct experiments on a multi-task medical dataset, indicating MOELoRA outperforms the existing parameter efficient fine-tuning methods. The code is available online.

For agents

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

get_harvested_code_for_paper("2310.18339")
get_code_for_paper("2310.18339")
have("2310.18339")

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

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

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

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

Connect an agent — have() is free.