Downloads · 30 days
9
24% of all-time downloads
PeytonT/query-rewriter
query-rewriter is a text generation model from PeytonT. Use it when you need the model to write or continue text. It is set up for peft.
Rewrites search queries for better retrieval recall over repositories and paper assets.
Downloads · 30 days
9
24% of all-time downloads
All-time downloads
37
Public
Repo size
4.4 MB
Likes
0
Public
Click a slice to open those files.
.safetensors3.6 MB · 52%
From the Hugging Face model README
Rewrites search queries for better retrieval recall over repositories and paper assets.
google/flan-t5-baseencoder_decoderL1repository_library_search_stackThis 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/query-rewriterhttps://huggingface.co/collections/PeytonT/research-library-6a49c589ef4d763f7539b50dhttps://github.com/peytontolbert/research_libraryhttps://github.com/peytontolbert/research_library/blob/main/models/experiments/l1_query_rewriter.jsonhttps://github.com/peytontolbert/research_library/tree/main/modelsThe training inputs for this package were assembled from the following Repository Library data sources:
github_repos: repository graph and code chunk data exported from the Repository Library repo pipeline.github_reposraw_query, retrieval_contextnormalized_query, expanded_queries[0.9, 0.1, 0.0]40002bf16cross_entropy5e-05256256peft_lora1000unknownunknownrecall_at_10, ndcg_at_10from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
from peft import PeftModel
repo_id = "PeytonT/query-rewriter"
base_id = "google/flan-t5-base"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
base = AutoModelForSeq2SeqLM.from_pretrained(base_id)
model = PeftModel.from_pretrained(base, repo_id)
https://github.com/peytontolbert/research_libraryhttps://huggingface.co/collections/PeytonT/research-library-6a49c589ef4d763f7539b50dPeytonT