ali77sina/SEC-QA-sorted-chunks
Viewer • Updated • 3.76k • 45 • 1
How to use ali77sina/SECGPT-FT-RAG with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="ali77sina/SECGPT-FT-RAG") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ali77sina/SECGPT-FT-RAG")
model = AutoModelForCausalLM.from_pretrained("ali77sina/SECGPT-FT-RAG")This model is a fine-tuned version of: https://huggingface.co/ali77sina/SECGPT
The instruction set is defined as follows:
text = f"""### Question: {example['questions'][i]},
### Context: {example['sorted_chunks'][i]},
### Answer: {example['answers'][i]}"""