Downloads · 30 days
8
18% of all-time downloads
PeytonT/abstract-code-relevance
abstract-code-relevance is a feature extraction model from PeytonT. Use it when you need embeddings to search or compare text. It is set up for peft.
Scores whether a paper abstract is relevant to a repository or code task.
Downloads · 30 days
8
18% of all-time downloads
All-time downloads
44
Public
Repo size
20.6 MB
Likes
0
Public
Click a slice to open those files.
.json17.3 MB · 83%
From the Hugging Face model README
Scores whether a paper abstract is relevant to a repository or code task.
meta-llama/Llama-3.2-1BdecoderA1T2_abstractThis model is part of the Repository Library stack, a research system for indexing, retrieving, aligning, and reasoning over scientific papers, structured paper content, repositories, and cross-domain links between them.
https://huggingface.co/PeytonT/abstract-code-relevancehttps://huggingface.co/collections/PeytonT/research-library-6a49c589ef4d763f7539b50dhttps://github.com/peytontolbert/research_libraryhttps://github.com/peytontolbert/research_library/blob/main/models/experiments/a1_abstract_code_relevance.jsonhttps://github.com/peytontolbert/research_library/tree/main/modelsThe training inputs for this package were assembled from the following Repository Library data sources:
arxiv_metadata: arXiv metadata records spanning titles, abstracts, authors, and category labels.github_repos: repository graph and code chunk data exported from the Repository Library repo pipeline.arxiv_metadata, github_reposabstractrepo_relevance[0.8, 0.1, 0.1]04bf16contrastive0.00012048512peft_lora1000ddp0recall_at_10, ndcg_at_10from transformers import AutoModel, AutoTokenizer
from peft import PeftModel
repo_id = "PeytonT/abstract-code-relevance"
base_id = "meta-llama/Llama-3.2-1B"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
base = AutoModel.from_pretrained(base_id)
model = PeftModel.from_pretrained(base, repo_id)
https://github.com/peytontolbert/research_libraryhttps://huggingface.co/collections/PeytonT/research-library-6a49c589ef4d763f7539b50dPeytonT