Skip to content

Commit 0636662

Browse files
committed
Remove unused SchedulerType field from FFN layer classes for cleaner and more maintainable code.
1 parent dbc4616 commit 0636662

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

src/main/java/org/beehive/gpullama3/tornadovm/layers/type/fp16/Phi3FP16FFNLayers.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public class Phi3FP16FFNLayers extends AbstractFFNLayers {
4242

4343
// Phi3-specific dimension for combined QKV buffer
4444
private final int opSize;
45-
private SchedulerType schedulerType;
4645

4746
public Phi3FP16FFNLayers(String taskGraphName, Phi3State state, Phi3TornadoWeights weights, Phi3Configuration config, SchedulerType schedulerType) {
4847
super(taskGraphName, state, weights, config,schedulerType);
@@ -58,7 +57,6 @@ public Phi3FP16FFNLayers(String taskGraphName, Phi3State state, Phi3TornadoWeigh
5857
// opSize = num_heads * head_dim + 2 * (num_key_value_heads * head_dim) = dim + 2 * kvDim
5958
this.opSize = config.dim() + 2 * (config.numberOfKeyValueHeads() * config.headSize());
6059
ffnLayerTaskGraphs = setupFFNLayered();
61-
this.schedulerType = schedulerType;
6260
}
6361

6462
@Override

src/main/java/org/beehive/gpullama3/tornadovm/layers/type/fp16/Qwen3FP16FFNLayers.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public class Qwen3FP16FFNLayers extends AbstractFFNLayers {
4141
TaskGraph ffnLayerTaskGraph;
4242
GridScheduler scheduler;
4343
List<ImmutableTaskGraph> ffnLayerTaskGraphs;
44-
private SchedulerType schedulerType;
4544

4645
public Qwen3FP16FFNLayers(String taskGraphName, Qwen3State state, Qwen3TornadoWeights weights, Qwen3Configuration config, SchedulerType schedulerType) {
4746
super(taskGraphName, state, weights, config,schedulerType);
@@ -57,7 +56,6 @@ public Qwen3FP16FFNLayers(String taskGraphName, Qwen3State state, Qwen3TornadoWe
5756
this.nEmbdGqa = nEmbdVGqa;
5857
this.gqa = config.numberOfHeads() / config.numberOfKeyValueHeads();
5958
ffnLayerTaskGraphs = setupFFNLayered();
60-
this.schedulerType = schedulerType;
6159
}
6260

6361
@Override

src/main/java/org/beehive/gpullama3/tornadovm/layers/type/q8_0/LlamaQ8_0FFNLayers.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ public class LlamaQ8_0FFNLayers extends AbstractFFNLayers {
2020

2121
GridScheduler scheduler;
2222
List<ImmutableTaskGraph> ffnLayerTaskGraphs;
23-
SchedulerType schedulerType;
2423

2524
public LlamaQ8_0FFNLayers(String taskGraphName, LlamaState state, LlamaTornadoWeights weights, Configuration config, SchedulerType schedulerType) {
2625
super(taskGraphName, state, weights, config, schedulerType);
2726
ffnLayerTaskGraphs = setupFFNLayered();
28-
this.schedulerType = schedulerType;
2927
}
3028

3129
@Override

src/main/java/org/beehive/gpullama3/tornadovm/layers/type/q8_0/Phi3Q8_0FFNLayers.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ public class Phi3Q8_0FFNLayers extends AbstractFFNLayers {
4040

4141
// Phi3-specific dimension for combined QKV buffer
4242
private final int opSize;
43-
private SchedulerType schedulerType;
4443

4544
public Phi3Q8_0FFNLayers(String taskGraphName, Phi3State state, Phi3TornadoWeights weights, Phi3Configuration config, SchedulerType schedulerType) {
4645
super(taskGraphName, state, weights, config, schedulerType);
4746
this.phi3State = state;
4847
this.phi3Config = config;
4948
this.opSize = config.dim() + 2 * (config.numberOfKeyValueHeads() * config.headSize());
5049
ffnLayerTaskGraphs = setupFFNLayered();
51-
this.schedulerType = schedulerType;
5250
}
5351

5452
@Override

0 commit comments

Comments
 (0)