Molbap HF Staff commited on
Commit
dc04102
·
1 Parent(s): df95764

smaller model

Browse files
Files changed (1) hide show
  1. modular_graph_and_candidates.py +1 -1
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("nomic-ai/nomic-embed-code")
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