Views
No views yet
graphjepa/cache/graph_<basename>_n<N>_ast.pkl and training
loops will auto-hit the cache with no model downloads required.| File | Description |
|---|---|
graph_psf_requests_n200_ast.pkl | Pickle of {'graph': TemporalGraph, 'features': dict_by_kind} |
./data/psf_requestsn_commits: 200514c1623fefff760bfa15a693aa38e474aba8560content_vec: BERT-mean-pool of node.contenttype_vec: BERT-mean-pool of node.type_description2cca40c0bf0621005b90f96c091f73c4d15519eeed3a88896b5e6fc7619f087d1import os, pickle
2from huggingface_hub import hf_hub_download
3
4os.makedirs('graphjepa/cache', exist_ok=True)
5path = hf_hub_download(
6 repo_id="IDMedicine/graphjepa-psf-requests-200-v2",
7 filename="graph_psf_requests_n200_ast.pkl",
8 repo_type="model",
9 local_dir='graphjepa/cache',
10)
11
12# Once in graphjepa/cache, load_or_build_graph() auto-hits:
13from graphjepa.graph_cache import load_or_build_graph
14graph, features = load_or_build_graph(
15 './data/psf_requests', n_commits=200, expand_ast=True)graphjepa package to be importable so the pickled
dataclasses resolve. Install from the source tree:pip install -e /path/to/code-transformer