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

Can't download pretrain-model about Raddit #42

Open
jiaruHithub opened this issue Jun 27, 2022 · 3 comments
Open

Can't download pretrain-model about Raddit #42

jiaruHithub opened this issue Jun 27, 2022 · 3 comments

Comments

@jiaruHithub
Copy link

jiaruHithub commented Jun 27, 2022

When I open the link https://drive.google.com/file/d/1Ja4PJT2bkFH0qgoWXjGBjByIFPco4h-S/view?usp=sharing, shown that I need access. How can I successfully download the pretrain model?
Thank you!

@acbull
Copy link
Owner

acbull commented Jun 27, 2022

Hi: I've updated the permission. Could you try it again?

@jiaruHithub
Copy link
Author

thx a lot! But when I run the code, report a ERROR that:

+--------------------+------------------------------+
| Parameter          | Value                        |
+--------------------+------------------------------+
| data_dir           | ../DATA/OAG                  |
+--------------------+------------------------------+
| use_pretrain       | 0                            |
+--------------------+------------------------------+
| pretrain_model_dir | /datadrive/models/gpt_all_cs |
+--------------------+------------------------------+
| model_dir          | /datadrive/models            |
+--------------------+------------------------------+
| task_name          | PF                           |
+--------------------+------------------------------+
| cuda               | 2                            |
+--------------------+------------------------------+
| domain             | _CS                          |
+--------------------+------------------------------+
| sample_depth       | 6                            |
+--------------------+------------------------------+
| sample_width       | 128                          |
+--------------------+------------------------------+
| conv_name          | hgt                          |
+--------------------+------------------------------+
| n_hid              | 400                          |
+--------------------+------------------------------+
| n_heads            | 8                            |
+--------------------+------------------------------+
| n_layers           | 3                            |
+--------------------+------------------------------+
| prev_norm          | 0                            |
+--------------------+------------------------------+
| last_norm          | 0                            |
+--------------------+------------------------------+
| dropout            | 0.200                        |
+--------------------+------------------------------+
| optimizer          | adamw                        |
+--------------------+------------------------------+
| scheduler          | cycle                        |
+--------------------+------------------------------+
| data_percentage    | 0.100                        |
+--------------------+------------------------------+
| n_epoch            | 50                           |
+--------------------+------------------------------+
| n_pool             | 8                            |
+--------------------+------------------------------+
| n_batch            | 16                           |
+--------------------+------------------------------+
| batch_size         | 256                          |
+--------------------+------------------------------+
| clip               | 0.500                        |
+--------------------+------------------------------+
Start Loading Graph Data...
Traceback (most recent call last):
  File "finetune_OAG_PF.py", line 80, in <module>
    graph = renamed_load(open(os.path.join(args.data_dir, 'graph%s.pk' % args.domain), 'rb'))
  File "/home/GPT-GNN/example_OAG/GPT_GNN/data.py", line 274, in renamed_load
    return RenameUnpickler(file_obj).load()
TypeError: an integer is required (got type bytes)

Can you help me?

@lihuiliullh
Copy link

I meet the same error. Did you solve it? @jiaruHithub

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

No branches or pull requests

3 participants