Skip to content

Conversation

@mikepapadim
Copy link
Member

…pullama3` namespace for improved modularity and clarity.

…pullama3` namespace for improved modularity and clarity.
@mikepapadim mikepapadim self-assigned this Aug 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes the Java package structure by migrating from the com.example namespace to the org.beehive.gpullama3 namespace for improved modularity and clarity.

  • Updates all package declarations from com.example.* to org.beehive.gpullama3.*
  • Updates all corresponding import statements across the codebase
  • Updates Maven configuration and shell scripts to reflect the new main class path

Reviewed Changes

Copilot reviewed 78 out of 78 changed files in this pull request and generated 8 comments.

File Description
Java source files (65 files) Package declarations and import statements updated to use org.beehive.gpullama3 namespace
pom.xml Maven groupId and main class configuration updated to new namespace
llama-tornado Shell script updated to reference new main class path
README.md Documentation updated with new main class path
Comments suppressed due to low confidence (1)


import static com.example.LlamaApp.USE_VECTOR_API;

public final class Q8_0FloatTensor extends FloatTensor {
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the static import import static com.example.LlamaApp.USE_VECTOR_API; without replacing it with the equivalent import from the new namespace will cause compilation errors if the USE_VECTOR_API constant is used in this class.

Copilot uses AI. Check for mistakes.

import static com.example.LlamaApp.USE_VECTOR_API;

public final class ArrayFloatTensor extends FloatTensor {
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the static import import static com.example.LlamaApp.USE_VECTOR_API; without replacing it with the equivalent import from the new namespace will cause compilation errors if the USE_VECTOR_API constant is used in this class.

Copilot uses AI. Check for mistakes.
import jdk.incubator.vector.VectorSpecies;
import sun.misc.Unsafe;

import java.lang.foreign.MemorySegment;
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the import import java.lang.foreign.ValueLayout; may cause compilation errors if ValueLayout is used elsewhere in this class.

Copilot uses AI. Check for mistakes.
import com.example.core.model.GGMLType;
import com.example.inference.weights.standard.StandardWeights;
import org.beehive.gpullama3.core.model.GGMLType;
import uk.ac.manchester.tornado.api.types.arrays.FloatArray;
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the import import com.example.inference.weights.standard.StandardWeights; without replacing it with the equivalent import from the new namespace will cause compilation errors if the StandardWeights class is used in this file.

Copilot uses AI. Check for mistakes.
package com.example.core.model;

import com.example.core.types.Float16;
package org.beehive.gpullama3.core.model;
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the import import com.example.core.types.Float16; without replacing it with the equivalent import from the new namespace will cause compilation errors if the Float16 class is used in this enum.

Copilot uses AI. Check for mistakes.
import com.example.core.model.tensor.GGMLTensorEntry;
import com.example.core.types.MetadataValueType;
import com.example.core.types.Pair;
import org.beehive.gpullama3.auxiliary.Timer;
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the self-referencing import import com.example.core.model.GGUF.GGUFTensorInfo; suggests that GGUFTensorInfo is an inner class that should be referenced without import, but this change may cause issues if the import was necessary for some reason.

Copilot uses AI. Check for mistakes.
import org.beehive.gpullama3.model.format.ChatFormat;
import org.beehive.gpullama3.tokenizer.impl.Phi3Tokenizer;
import org.beehive.gpullama3.tokenizer.impl.Tokenizer;
import org.beehive.gpullama3.tornadovm.TornadoVMMasterPlan;
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the import import com.example.model.Model; without replacing it with the equivalent import from the new namespace will cause compilation errors if the Model interface is used in this class beyond what's provided by AbstractModel.

Copilot uses AI. Check for mistakes.
import org.beehive.gpullama3.model.phi3.Phi3Configuration;
import org.beehive.gpullama3.tokenizer.impl.Phi3Tokenizer;
import org.beehive.gpullama3.tokenizer.impl.Tokenizer;
import org.beehive.gpullama3.tokenizer.vocabulary.Vocabulary;
Copy link

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the import import com.example.model.Model; without replacing it with the equivalent import from the new namespace will cause compilation errors if the Model interface is used in this class.

Copilot uses AI. Check for mistakes.
@mikepapadim mikepapadim merged commit 85f1875 into beehive-lab:main Aug 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant