Closed AstroCIEL closed 7 months ago
It's a problem resolved before, https://github.com/HKUDS/GraphGPT/issues/7. You need to modify config.json of vicuna.
thank you. it worked. now my "graphgpt_stage1.sh" is like:
model_path=../vicuna-7b-v1.5-16k instruct_ds=./data/stage1/train_instruct_graphmatch.json graph_data_path=./graph_data/graph_data_all.pt pretra_gnn=clip_gt_arxiv output_model=./checkpoints/stage_1
and my config.json of vicuna is like
{ "_name_or_path": "vicuna-7b-v1.5-16k", "architectures": [ "LlamaForCausalLM" ], "bos_token_id": 1, "eos_token_id": 2, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 11008, "max_sequence_length": 16384, "max_position_embeddings": 4096, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 32, "pad_token_id": 0, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": { "factor": 4.0, "type": "linear" }, "tie_word_embeddings": false, "torch_dtype": "float16", "transformers_version": "4.39.3", "use_cache": true, "vocab_size": 32000, "graph_hidden_size": 128, "pretrain_graph_model_path": "/media/8T3/rh_xu/GraphGPT/" }
note that my file structure is like /media/8T3/rh_xu/GraphGPT/clip_gt_arxiv/clip_gt_arxiv_pub.pkl.
error met as the title. and the whole information is as follows. i wonder whether the version of pacakge "transformers" which is the newest (4.39.3), is proper?