Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSPP]: Personalized LLM Agent based on KubeEdge-Ianvs Cloud-Edge Collaboration #154

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

Frank-lilinjie
Copy link
Contributor

The PR of Personalized LLM Agent based on KubeEdge-Ianvs Cloud-Edge Collaboration

@kubeedge-bot kubeedge-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 29, 2024
@MooreZheng MooreZheng requested review from hsj576 and removed request for Poorunga October 14, 2024 02:51
Copy link
Collaborator

@MooreZheng MooreZheng left a comment

Choose a reason for hiding this comment

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

There are CI issues that needs to be resolved

Run pylint '/home/runner/work/ianvs/ianvs/core'
************* Module core.testcasecontroller.algorithm.paradigm.singletask_learning.singletask_learning_active_boost
core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_active_boost.py:66:4: R09[1](https://github.com/kubeedge/ianvs/actions/runs/11092223886/job/30816995965?pr=154#step:5:1)7: Too many positional arguments (7/5) (too-many-positional-arguments)
************* Module core.testenvmanager.dataset.dataset
core/testenvmanager/dataset/dataset.py:119:4: R091[7](https://github.com/kubeedge/ianvs/actions/runs/11092223886/job/30816995965?pr=154#step:5:8): Too many positional arguments (8/5) (too-many-positional-arguments)
core/testenvmanager/dataset/dataset.py:206:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
core/testenvmanager/dataset/dataset.py:213:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
core/testenvmanager/dataset/dataset.py:246:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
core/testenvmanager/dataset/dataset.py:2[8](https://github.com/kubeedge/ianvs/actions/runs/11092223886/job/30816995965?pr=154#step:5:9)5:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
core/testenvmanager/dataset/dataset.py:329:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
core/testenvmanager/dataset/dataset.py:368:4: R0[9](https://github.com/kubeedge/ianvs/actions/runs/11092223886/job/30816995965?pr=154#step:5:10)17: Too many positional arguments (6/5) (too-many-positional-arguments)

-----------------------------------
Your code has been rated at 9.95/[10](https://github.com/kubeedge/ianvs/actions/runs/11092223886/job/30816995965?pr=154#step:5:11)

Error: Process completed with exit code 8.

@MooreZheng
Copy link
Collaborator

/lgtm

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 22, 2024
Copy link
Member

@hsj576 hsj576 left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Collaborator

@MooreZheng MooreZheng left a comment

Choose a reason for hiding this comment

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

To facilitate international impacts, need to translate Chinese comments into English for load_json and preprocess of basemodel.py.

pass

def load_json(self, data_dir, tokenizer, token_factor = 32):
MYjson=datasets.load_dataset("json",data_files=data_dir) # 加载Json数据集
Copy link
Collaborator

Choose a reason for hiding this comment

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

For load_json of basemodel.py, need to translate Chinese comments into English to facilitate international impacts



def preprocess(self, samples, MAX_LENGTH, tokenizer):
input_ids,attention_mask,labels=[],[],[] # 初始化三个空列表
Copy link
Collaborator

Choose a reason for hiding this comment

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

For preprocess of basemodel.py, need to translate Chinese comments into English

@kubeedge-bot kubeedge-bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 26, 2024
Copy link
Collaborator

@MooreZheng MooreZheng left a comment

Choose a reason for hiding this comment

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

Just to remind @Frank-lilinjie : Chinese statements need to be refined into English before merging.

Besides, this pull request contains 15 commits, which might make maintenance difficult, considering the number of contributors, pull requests, and their commits in KubeEdge Ianvs recently. In the final stage, @Frank-lilinjie can squash the commits into one using rebase techniques.

@Frank-lilinjie
Copy link
Contributor Author

Just to remind @Frank-lilinjie : Chinese statements need to be refined into English before merging.

Besides, this pull request contains 15 commits, which might make maintenance difficult, considering the number of contributors, pull requests, and their commits in KubeEdge Ianvs recently. In the final stage, @Frank-lilinjie can squash the commits into one using rebase techniques.

copy that

Copy link
Collaborator

@MooreZheng MooreZheng left a comment

Choose a reason for hiding this comment

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

Need to change print using loggers

Copy link
Member

@hsj576 hsj576 left a comment

Choose a reason for hiding this comment

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

The "print" should be removed or replaced by "LOGGER.info".

return rougeL

def calculate_mean(lst):
print(lst)
Copy link
Member

Choose a reason for hiding this comment

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

The "print" should be removed or replaced by "LOGGER.info".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy that

Copy link
Member

@hsj576 hsj576 left a comment

Choose a reason for hiding this comment

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

/lgtm

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 31, 2024
Copy link
Collaborator

@MooreZheng MooreZheng left a comment

Choose a reason for hiding this comment

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

This pull request contains 20 commits, which might make maintenance difficult, considering the number of contributors, pull requests, and their commits in KubeEdge Ianvs recently. In the final stage, @Frank-lilinjie can squash the commits into one using rebase techniques.

@kubeedge-bot kubeedge-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 31, 2024
@kubeedge-bot kubeedge-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 31, 2024
Signed-off-by: Frank-lilinjie <lilinjie@bupt.edu.cn>

delete proposal in this branch

Signed-off-by: Frank-lilinjie <lilinjie@bupt.edu.cn>

fix: deprecate outdated interface of pandas

Signed-off-by: Yu Fan <fany@buaa.edu.cn>

fix: pylint R0917 error

Signed-off-by: Yu Fan <fany@buaa.edu.cn>

fix the issuse of Chinese comments

Signed-off-by: Frank-lilinjie <lilinjie@bupt.edu.cn>

parent 5fd70d2
author Frank-lilinjie <lilinjie@bupt.edu.cn> 1730356419 +0800
committer Frank-lilinjie <lilinjie@bupt.edu.cn> 1730365262 +0800

parent 5fd70d2
author Frank-lilinjie <lilinjie@bupt.edu.cn> 1730356419 +0800
committer Frank-lilinjie <lilinjie@bupt.edu.cn> 1730365240 +0800

Print replaced with logging

Signed-off-by: Frank-lilinjie <lilinjie@bupt.edu.cn>

add a proposal of Smart Coding benchmark suite

Signed-off-by: boX <442572328@qq.com>

update and improve the proposal
Improve the architecture diagram

Signed-off-by: boX <442572328@qq.com>

update and improve the proposal

Signed-off-by: boX <442572328@qq.com>

add Proposal for Large Language Model Edge Benchmark Suite: Implementation on KubeEdge-lanvs

Signed-off-by: yexiaochuan <tap91624@gmail.com>

add Proposal for Large Language Model Edge Benchmark Suite: Implementation on KubeEdge-lanvs

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

llm suite benchmark implement

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

Revert "llm suite benchmark implement"

This reverts commit f341b0f.

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

Fix llm edge benchmark suite description and highlight edge in the name of the documents

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

fix pylint 3.9 too-many-positional-arguments

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

Trigger CI

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

Trigger CI

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

Fix pylint disable R0913

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

Fix pylint disable R0917

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

Revert: Remove extra pylint fix changes

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

chore: Empty commit to trigger CI

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

add: Heterogeneous Multi-Edge Collaborative Neural Network Inference for High Mobility Scenarios: Base on KubeEdge-Ianvs proposal

Signed-off-by: wyoung1 <wyoung@mail.ustc.edu.cn>

coding for ospp

Signed-off-by: wyoung1 <wyoung@mail.ustc.edu.cn>

fix pylint

Signed-off-by: wyoung1 <wyoung@mail.ustc.edu.cn>

fix pylint issue

Signed-off-by: wyoung1 <wyoung@mail.ustc.edu.cn>

add: add a simple demo of feadereated learning in ianvs

Signed-off-by: Marchons <d12863606746@outlook.com>
Signed-off-by: Marchons <1286360646@qq.com>

Revert "OSPP: Development of Federated Incremental Learning for Label Scarcity: Base on KubeEdge-Ianvs"

Revert "Merge pull request kubeedge#160 from kubeedge/revert-143-dev_script"

This reverts commit 4f01ee5, reversing
changes made to 9553051.

Signed-off-by: Marchons <1286360646@qq.com>

add Impl for llm edge benchmark suite

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

adapt Impl in core for llm edge benchmark suite

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

Fix impl on singletast_learning with compression

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

chore: trigger CI

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

CI: fix pylint warnings

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

CI: fix pylint warnings

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

fix: update comments and configuration parameters

Signed-off-by: yexiaochuan <yxc2020@foxmail.com>

fix core of dataset

Signed-off-by: Frank-lilinjie <lilinjie@bupt.edu.cn>
@MooreZheng
Copy link
Collaborator

/lgtm

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 31, 2024
@MooreZheng
Copy link
Collaborator

/approve

@kubeedge-bot kubeedge-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 31, 2024
Copy link
Collaborator

@MooreZheng MooreZheng left a comment

Choose a reason for hiding this comment

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

All concerns are tackled. Well done! @Frank-lilinjie

@kubeedge-bot kubeedge-bot merged commit f424d35 into kubeedge:main Oct 31, 2024
13 checks passed
@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hsj576, MooreZheng

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants