Spaces:
Running
on
Zero
Running
on
Zero
smaller model
Browse files
modular_graph_and_candidates.py
CHANGED
@@ -96,7 +96,7 @@ def similarity_clusters(bags: Dict[str, List[Set[str]]], thr: float) -> Dict[Tup
|
|
96 |
|
97 |
@spaces.GPU
|
98 |
def embedding_similarity_clusters(models_root: Path, missing: List[str], thr: float) -> Dict[Tuple[str, str], float]:
|
99 |
-
model = SentenceTransformer("
|
100 |
model.max_seq_length = 4096 # truncate overly long modeling files
|
101 |
texts = {}
|
102 |
|
|
|
96 |
|
97 |
@spaces.GPU
|
98 |
def embedding_similarity_clusters(models_root: Path, missing: List[str], thr: float) -> Dict[Tuple[str, str], float]:
|
99 |
+
model = SentenceTransformer("codesage/codesage-large-v2", trust_remote_code=True)
|
100 |
model.max_seq_length = 4096 # truncate overly long modeling files
|
101 |
texts = {}
|
102 |
|