Views
No views yet
FINGU-AI/FINGU-2.5-instruct-70B is a versatile causal language model designed to excel in various natural language processing (NLP) tasks, including machine translation, text generation, and chat-based applications. The model demonstrates a strong aptitude for reasoning tasks, particularly in the Japanese language, making it a valuable tool for applications requiring logical inference and complex understanding.FINGU-AI/FINGU-2.5-instruct-70B has been assessed using the JFLD benchmark, which tests a model's ability for deductive reasoning based on formal logic. The model's performance indicates a robust capacity to handle tasks that require understanding and reasoning over formal logical structures.pip install torch transformers1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4# Model and Tokenizer
5model_id = 'FINGU-AI/FINGU-2.5-instruct-70B'
6model = AutoModelForCausalLM.from_pretrained(model_id, attn_implementation="sdpa", torch_dtype=torch.bfloat16, device_map='auto')
7tokenizer = AutoTokenizer.from_pretrained(model_id)
8
9
10# Input Messages for Translation
11messages = [
12 {"role": "user", "content": """Please reason step by step, and put your final answer within \boxed{}.
13 translate korean to Japanese.
14 새로운 은행 계좌를 개설하는 절차는 다음과 같습니다:
15
161. 계좌 개설 목적과 신분 확인을 위한 서류 제출
172. 서류 검토 과정을 거치는 것
183. 고객님의 신원 확인 절차를 진행하는 것
194. 모든 절차가 완료되면 계좌 개설이 가능합니다.
20
21계좌 개설을 원하시는 경우, 신분증과 함께 방문해 주시면 됩니다.
22"""}
23]
24
25# Tokenize and Generate Response
26input_ids = tokenizer.apply_chat_template(
27 messages,
28 add_generation_prompt=True,
29 return_tensors="pt"
30).to(model.device)
31
32outputs = model.generate(
33 input_ids,
34 max_new_tokens=500,
35 do_sample=True,
36)
37
38# Decode and Print the Response
39response = outputs[0][input_ids.shape[-1]:]
40print(tokenizer.decode(response, skip_special_tokens=True))FINGU-AI/FINGU-2.5-instruct-70B, the following Japanese reasoning datasets are pertinent:FINGU-AI/FINGU-2.5-instruct-70B stands as a robust and adaptable language model, particularly distinguished by its reasoning capabilities in the Japanese language. Its performance across various reasoning benchmarks underscores its potential for applications that demand advanced logical inference and nuanced understanding in NLP tasks.