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

GNN+LLM example (part 1) #9350

Merged
merged 463 commits into from
May 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
463 commits
Select commit Hold shift + click to select a range
107a806
linting is super stricccccbldentkureckegtvjdftneblhtdikldrhg
puririshi98 Mar 14, 2024
d98461c
linting is super stricccccbldentkureckegtvjdftneblhtdikldrhg
puririshi98 Mar 14, 2024
ec99363
linting is super stricccccbldentkureckegtvjdftneblhtdikldrhg
puririshi98 Mar 14, 2024
36e1481
linting is super strict, ignoring the final unimportant ones
puririshi98 Mar 14, 2024
54e1ad8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 14, 2024
520c7ac
Merge branch 'master' into g-retriever
puririshi98 Mar 15, 2024
6abd9f9
in linting, induced a bug, solving...
puririshi98 Mar 15, 2024
d312bce
in linting, induced a bug, solving...
puririshi98 Mar 15, 2024
7e54909
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 15, 2024
cdc7870
in linting, induced a bug, solving...
puririshi98 Mar 15, 2024
78650c5
in linting, induced a bug, solving...
puririshi98 Mar 15, 2024
9977075
reverted, did necessary cleanup, ignoring all other lint complaints s…
puririshi98 Mar 15, 2024
1f5d719
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 15, 2024
54d7008
reverted, did necessary cleanup, ignoring all other lint complaints s…
puririshi98 Mar 15, 2024
5d0b828
reverted, did necessary cleanup, ignoring all other lint complaints s…
puririshi98 Mar 15, 2024
5c10425
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 15, 2024
98d00de
Merge branch 'master' into g-retriever
puririshi98 Mar 20, 2024
8e78079
Merge branch 'master' into g-retriever
puririshi98 Mar 26, 2024
e0bedbb
update to accomodate latest version of peft, int8->kbit
puririshi98 Mar 26, 2024
4ff8dac
Merge branch 'g-retriever' of https://github.com/pyg-team/pytorch_geo…
puririshi98 Mar 26, 2024
e4dbc8f
Merge branch 'master' into g-retriever
puririshi98 Mar 27, 2024
3fd1d69
Merge branch 'master' into g-retriever
puririshi98 Apr 1, 2024
9c05795
addresing Serge review
puririshi98 Apr 1, 2024
4c945a3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 1, 2024
18bd2d3
Merge branch 'master' into g-retriever
puririshi98 Apr 2, 2024
1ee3fe9
minor cleanup
puririshi98 Apr 2, 2024
ff4ec90
adding a demo
puririshi98 Apr 4, 2024
e60b280
beginning drafting, very rough
puririshi98 Apr 4, 2024
0328035
drafting wip
puririshi98 Apr 4, 2024
9988e4e
drafting wip
puririshi98 Apr 5, 2024
497d3c0
drafting wip
puririshi98 Apr 5, 2024
e509faa
drafting wip
puririshi98 Apr 5, 2024
d2873fc
drafting wip
puririshi98 Apr 5, 2024
5426feb
drafting wip
puririshi98 Apr 5, 2024
2256578
drafting wip
puririshi98 Apr 5, 2024
122e16f
done drafting, debugging time
puririshi98 Apr 5, 2024
b66df4b
done drafting, debugging time
puririshi98 Apr 5, 2024
4e8ae77
debugging time...
puririshi98 Apr 5, 2024
23906ca
debugging time...
puririshi98 Apr 5, 2024
a062468
debugging time...
puririshi98 Apr 5, 2024
c84d957
debugging time...
puririshi98 Apr 5, 2024
73c735b
debugging time...
puririshi98 Apr 5, 2024
272f3b3
debugging time...
puririshi98 Apr 5, 2024
05f2c6f
debugging time...
puririshi98 Apr 5, 2024
2bc97a1
llamas working, will try gemma once im done running llama
puririshi98 Apr 5, 2024
47b99f2
llamas working, will try gemma once im done running llama
puririshi98 Apr 5, 2024
45e6db9
testing gemma
puririshi98 Apr 5, 2024
4e301d4
gemma performed, worse, may need tuning, will leave for community sprint
puririshi98 Apr 8, 2024
7d0fb73
Merge branch 'master' into gnn-llm-model-integration
puririshi98 Apr 8, 2024
7cb9250
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 8, 2024
3889838
cleaning up
puririshi98 Apr 8, 2024
e9daa29
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 8, 2024
209eaa6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 8, 2024
e1568cd
cleaning up
puririshi98 Apr 8, 2024
bd54813
cleaning up
puririshi98 Apr 8, 2024
dd227b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 8, 2024
b840305
cleaning up
puririshi98 Apr 8, 2024
8760cf6
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 8, 2024
ea01499
cleaning up
puririshi98 Apr 8, 2024
5062e8a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 8, 2024
ffb2949
cleaning up
puririshi98 Apr 8, 2024
232e437
cleaning up
puririshi98 Apr 8, 2024
1f78131
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 8, 2024
deecfec
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 8, 2024
a058bd5
cleaning up
puririshi98 Apr 8, 2024
30f0458
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 8, 2024
98332c2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 8, 2024
d7c7f0a
cleaning up
puririshi98 Apr 8, 2024
ac565aa
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 8, 2024
133b6fe
cleaning up
puririshi98 Apr 8, 2024
963aa4a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 8, 2024
f47552b
cleaning up
puririshi98 Apr 9, 2024
dce7102
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 9, 2024
86b301f
cleaning up
puririshi98 Apr 9, 2024
c3cf076
cleaning up
puririshi98 Apr 9, 2024
0267f3b
cleaning up
puririshi98 Apr 9, 2024
8fae5cb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 9, 2024
e352692
cleaning up
puririshi98 Apr 10, 2024
4efe2a4
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 10, 2024
6bd0ce5
cleaning up
puririshi98 Apr 10, 2024
18d56de
cleaning up
puririshi98 Apr 10, 2024
be3b729
cleaning up
puririshi98 Apr 10, 2024
0ba6d7a
cleaning up
puririshi98 Apr 10, 2024
2151748
cleaning up
puririshi98 Apr 10, 2024
95bf912
cleaning up
puririshi98 Apr 10, 2024
27fcc13
seeing how demo changes if i change max_new_tokens to 256 for llm
puririshi98 Apr 10, 2024
8c20ed8
seeing how demo changes if i change max_new_tokens to 256 for llm
puririshi98 Apr 11, 2024
bf298da
seeing how demo changes if i change max_new_tokens to 256 for llm
puririshi98 Apr 11, 2024
8ea92c2
seeing how demo changes if i change max_new_tokens to 256 for llm
puririshi98 Apr 11, 2024
06e9f68
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 11, 2024
fe3e8dc
seeing how demo changes if i change max_new_tokens to 256 for llm
puririshi98 Apr 11, 2024
3eb6bae
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
1095a4e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 11, 2024
0cf11ef
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
21e1bfc
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 11, 2024
c916a71
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
d7d95f4
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
e6b1662
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
a1cddd1
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
5afafc8
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
e48450a
Merge branch 'master' into gnn-llm-model-integration
puririshi98 Apr 11, 2024
dc36114
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 11, 2024
26d5f4a
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
21de351
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
c65b22d
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
96cba96
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
5f153e9
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
4a78e72
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
e2fe009
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
cf9e240
added finetuned llm baseline to demo
puririshi98 Apr 11, 2024
c2ecf93
debugging
puririshi98 Apr 12, 2024
9409c80
debugging
puririshi98 Apr 12, 2024
c1b4d3b
debugging
puririshi98 Apr 12, 2024
28519f3
debugging
puririshi98 Apr 12, 2024
68b9636
debugging
puririshi98 Apr 12, 2024
c00ea5d
debugging
puririshi98 Apr 12, 2024
69c5914
debugging
puririshi98 Apr 12, 2024
b3f7b8e
debugging
puririshi98 Apr 12, 2024
6a9537b
debugging
puririshi98 Apr 12, 2024
a6b9bb4
debugging
puririshi98 Apr 12, 2024
4e58b47
debugging
puririshi98 Apr 12, 2024
1df9c2c
trying w/o LORA
puririshi98 Apr 12, 2024
f7667d2
trying w/o LORA
puririshi98 Apr 12, 2024
340d979
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2024
31ee292
trying w/o LORA
puririshi98 Apr 12, 2024
a838cec
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 12, 2024
c0a0cce
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2024
86c555a
trying w/o LORAccccbldnentdgedjttcerditubgctrdlecvtkifvukgc
puririshi98 Apr 12, 2024
de12835
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 12, 2024
3f3c697
Merge branch 'master' into gnn-llm-model-integration
puririshi98 Apr 12, 2024
364e4de
seems turning off LORA fixes the issue and makes training much faster
puririshi98 Apr 12, 2024
a1fe284
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2024
2ab810d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2024
d27c559
seems turning off LORA fixes the issue and makes training much faster
puririshi98 Apr 12, 2024
a4f8b7a
seems turning off LORA fixes the issue and makes training much faster
puririshi98 Apr 12, 2024
dc8867a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2024
3e3f79e
seems turning off LORA fixes the issue and makes training much faster
puririshi98 Apr 12, 2024
7cfb4b9
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 12, 2024
1f64d39
seems turning off LORA fixes the issue and makes training much faster
puririshi98 Apr 12, 2024
d0b91aa
cleanup
puririshi98 Apr 12, 2024
1d25cb7
cleanup
puririshi98 Apr 12, 2024
bd3d606
cleanup
puririshi98 Apr 12, 2024
cb3254f
Merge branch 'master' into gnn-llm-model-integration
puririshi98 Apr 15, 2024
74fa2dc
cleanup
puririshi98 Apr 15, 2024
bfc05ed
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 15, 2024
6ebba50
cleanup
puririshi98 Apr 15, 2024
ee5b40a
cleanup
puririshi98 Apr 15, 2024
898931d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 15, 2024
0abd3ba
cleanup
puririshi98 Apr 15, 2024
7030166
cleanup
puririshi98 Apr 15, 2024
0a7d44b
cleanup
puririshi98 Apr 15, 2024
e94a4f7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 15, 2024
f09bab3
cleanup
puririshi98 Apr 15, 2024
e434c78
cleanup
puririshi98 Apr 15, 2024
c1779bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 15, 2024
2c1c89b
cleanup
puririshi98 Apr 16, 2024
c79a967
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
d6d2b2f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
248b9df
cleanup
puririshi98 Apr 16, 2024
9b288ee
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
64e542f
cleanup
puririshi98 Apr 16, 2024
0e328c4
cleanup
puririshi98 Apr 16, 2024
1b5c994
cleanup
puririshi98 Apr 16, 2024
6e094fb
cleanup
puririshi98 Apr 16, 2024
4c971f6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
9356bd9
cleanup
puririshi98 Apr 16, 2024
17ae7e5
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
54e7691
cleanup
puririshi98 Apr 16, 2024
c4b6a8f
cleanup
puririshi98 Apr 16, 2024
c37a52e
cleanup
puririshi98 Apr 16, 2024
bcdc988
cleanup
puririshi98 Apr 16, 2024
46aca67
cleanup
puririshi98 Apr 16, 2024
b80467f
cleanup
puririshi98 Apr 16, 2024
b24a8a4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
c9a2a39
cleanup
puririshi98 Apr 16, 2024
b00950d
Merge branch 'master' into gnn-llm-model-integration
puririshi98 Apr 16, 2024
8f06a5b
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
6b8fa8f
cleanup
puririshi98 Apr 16, 2024
244c032
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
3bf8744
cleanup
puririshi98 Apr 16, 2024
293a99b
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
3014f72
cleanup
puririshi98 Apr 16, 2024
b511049
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
b81819e
cleanup
puririshi98 Apr 16, 2024
96d019f
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
5bff5d7
cleanup
puririshi98 Apr 16, 2024
69bd39c
cleanup
puririshi98 Apr 16, 2024
f1769e8
cleanup
puririshi98 Apr 16, 2024
d2486a3
cleanup
puririshi98 Apr 16, 2024
875d93c
cleanup
puririshi98 Apr 16, 2024
06899d6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
0ce56ee
cleanup
puririshi98 Apr 16, 2024
64830c6
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
7d43464
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
edb0fbc
cleanup
puririshi98 Apr 16, 2024
574418e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
ef0ef47
cleanup
puririshi98 Apr 16, 2024
4399678
cleanup
puririshi98 Apr 16, 2024
ff6e52d
cleanup
puririshi98 Apr 16, 2024
740ab5e
cleanup
puririshi98 Apr 16, 2024
0bdd98c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
b6d1948
cleanup
puririshi98 Apr 16, 2024
c37df9a
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
4d37e0c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
dac44f0
cleanup
puririshi98 Apr 16, 2024
ad3a841
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 16, 2024
be162ff
Merge branch 'master' into gnn-llm-model-integration
puririshi98 Apr 23, 2024
4f34991
addressing reviews
puririshi98 Apr 24, 2024
b875e2b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 24, 2024
d5b81a5
addressing suggested change for LLM param names
puririshi98 Apr 24, 2024
1adacb2
commiting suggestion
puririshi98 Apr 24, 2024
89bd46c
commiting suggestion to fix typo
puririshi98 Apr 24, 2024
db82d71
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 24, 2024
1f4c949
cleanup sentence_transformer
puririshi98 Apr 24, 2024
59fae5e
fixing type hint
puririshi98 Apr 24, 2024
84ced02
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 24, 2024
1a74985
rename GNN_LLM to GRetriever
puririshi98 Apr 24, 2024
04ca2f8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 24, 2024
3c755e4
cleaning imports
puririshi98 Apr 24, 2024
66031ea
Merge branch 'gnn-llm-model-integration' of https://github.com/pyg-te…
puririshi98 Apr 24, 2024
a99a1b9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 24, 2024
1bde6bf
reverting
puririshi98 Apr 24, 2024
3bbe694
reverting
puririshi98 Apr 24, 2024
1769f4e
pandas clean
puririshi98 Apr 24, 2024
e3dc5dd
docstring for LLM
puririshi98 Apr 24, 2024
8b327d0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 24, 2024
2463a43
Cleanup (#9242)
puririshi98 Apr 27, 2024
e726eb7
Merge branch 'master' into gnn-llm-model-integration
puririshi98 Apr 27, 2024
42e84e4
cleanup
puririshi98 Apr 29, 2024
26752a7
cleanup
puririshi98 Apr 29, 2024
55969aa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 29, 2024
717f287
Merge branch 'master' into gnn-llm-model-integration
puririshi98 Apr 30, 2024
be61c2b
cleanup
puririshi98 May 1, 2024
8dc7e21
Merge branch 'master' into gnn-llm-model-integration
puririshi98 May 2, 2024
95d4b85
Merge branch 'master' into gnn-llm-model-integration
puririshi98 May 7, 2024
ba61152
fixing a warning in latest pandas
puririshi98 May 7, 2024
42be44d
cleanup
puririshi98 May 7, 2024
3e1d36c
minor cleanup for the demo
puririshi98 May 8, 2024
b7d17ac
typo fix
puririshi98 May 10, 2024
38a08d7
Fix changelog
akihironitta May 14, 2024
408efae
formatting
akihironitta May 14, 2024
76d425a
formatting
akihironitta May 14, 2024
ac7fcdb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 14, 2024
19bcada
Update g_retriever.py
puririshi98 May 14, 2024
a7f072a
Merge remote-tracking branch 'origin/gnn-llm-model-integration' into …
rusty1s May 22, 2024
6296336
update
rusty1s May 22, 2024
ed7d1e4
update
rusty1s May 22, 2024
9817a15
update
rusty1s May 22, 2024
6c2a50d
update
rusty1s May 22, 2024
2fbc021
update
rusty1s May 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drafting wip
  • Loading branch information
puririshi98 committed Apr 4, 2024
commit 03280354461693f7e5c20d02890de7260503d745
24 changes: 20 additions & 4 deletions torch_geometric/nn/models/gnn_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from torch_geometric import seed_everything
from torch_geometric.data import Batch
from torch_geometric.utils import scatter
from torch_geometric.nn.models import GAT
from torch_geometric.nn.models import GAT, BasicGNN


BOS = '<s>[INST]'
EOS_USER = '[/INST]'
Expand Down Expand Up @@ -104,12 +105,27 @@ def inference(self, samples: Batch):


class GNN_LLM(nn.Module):
"""This GNN+LLM implementation is based on the design from
G-retriever. Original Paper: https://arxiv.org/abs/2402.07630
Args:
llm_to_use (str): A string representing the huggingface model you
want to use. This module has been tested for 'llama2' and 'gemma2'.
Other huggingface transformer models should work if you pass the
correct name, see huggingface.co for details. If any issues occur
please file an issue on https://github.com/pyg-team/pytorch_geometric
and tag puririshi98. (default: :obj:'llama2')
gnn_to_use (BasicGNN): Please pass a valid model that extends
torch_geometric.nn.models.BasicGNN. (default: :obj:`GAT`)
"""
def __init__(self, llm_to_use='llama2', gnn_to_use=GAT, hidden_channels: int, num_gnn_layers: int):
super().__init__()


self.llama2 = LLAMA2()

if 'llama' in llm_to_use.lower():
self.llm_to_use = LLM('llama2')
elif 'gemma' in llm_to_use.lower():
self.llm_to_use = LLM('gemma2')
else:
self.llm_to_use = LLM(llm_to_use)
print("Training LLAMA with LORA!")
self.llm = self.llama2.llm
self.llm_device = self.llama2.llm_device
Expand Down