Views
No views yet
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3# Load the model and tokenizer
4model_name = "zeeshanali01/cryptotunned"
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForCausalLM.from_pretrained(model_name)
7
8# Tokenize input
9inputs = tokenizer("What are the key takeaways from the latest earnings report?", return_tensors="pt")
10
11# Generate output
12outputs = model.generate(**inputs)
13print(tokenizer.decode(outputs[0], skip_special_tokens=True))@inproceedings{cao2024catmemo,
title={CatMemo at the FinLLM Challenge Task: Fine-Tuning Large Language Models using Data Fusion in Financial Applications},
author={Cao, Yupeng and Yao, Zhiyuan and Chen, Zhi and Deng, Zhiyang},
booktitle={Joint Workshop of the 8th Financial Technology and Natural Language Processing (FinNLP) and the 1st Agent AI for Scenario Planning (AgentScen) in conjunction with IJCAI 2023},
pages={174},
year={2024}
}