Bremin commited on
Commit
4beabf6
·
verified ·
1 Parent(s): af59e0e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +58 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pretty_name: graphjepa-psf-requests-200
4
+ tags:
5
+ - temporal-graph
6
+ - code-graph
7
+ - graph-ssl
8
+ - jepa
9
+ ---
10
+
11
+ # graphjepa-psf-requests-200
12
+
13
+ Precomputed (TemporalGraph, node_features) cache for the
14
+ [graphjepa](https://github.com/IDMedicine/code-transformer)
15
+ project. Avoids repeated git-checkout + tree-sitter + BERT-feature
16
+ preprocessing on every training run.
17
+
18
+ ## Contents
19
+
20
+ | File | Description |
21
+ |---|---|
22
+ | `graph.pkl` | Pickle of `{'graph': TemporalGraph, 'features': dict_by_kind}` |
23
+
24
+ ## Source
25
+
26
+ - Source repo: `./data/psf_requests`
27
+ - First `n_commits`: **200**
28
+ - Source HEAD at build time: `514c1623fefff760bfa15a693aa38e474aba8560`
29
+ - AST expansion: **enabled**
30
+ - Features: BERT base uncased, frozen embedding lookup (not forward pass)
31
+ * `content_vec`: BERT-mean-pool of node.content
32
+ * `type_vec`: BERT-mean-pool of node.type_description
33
+
34
+ ## SHA-256
35
+
36
+ `9267fb1c7157cf3d9ca9f9e26f4802e28c530c08e15a184a2b1c7938a9c8af70`
37
+
38
+ ## Usage
39
+
40
+ ```python
41
+ from huggingface_hub import hf_hub_download
42
+ import pickle
43
+
44
+ path = hf_hub_download(
45
+ repo_id="IDMedicine/graphjepa-psf-requests-200",
46
+ filename="graph.pkl",
47
+ repo_type="dataset",
48
+ )
49
+ with open(path, 'rb') as f:
50
+ payload = pickle.load(f)
51
+ graph, features = payload['graph'], payload['features']
52
+ ```
53
+
54
+ Requires the `graphjepa` package to be importable so the pickled
55
+ dataclasses resolve. Install from the source tree:
56
+ ```bash
57
+ pip install -e /path/to/code-transformer
58
+ ```