How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Mori-kamiyama/sarashina-13B-finetuned-v1")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Mori-kamiyama/sarashina-13B-finetuned-v1")
model = AutoModelForCausalLM.from_pretrained("Mori-kamiyama/sarashina-13B-finetuned-v1", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Model Card for Sarashina2-13b-finetuned-v1 🧮📘

A Japanese-English bilingual language model fine-tuned on 100 randomly shuffled samples from math datasets. Based on sbintuitions/sarashina2-13b and trained using unsloth, trl, and sft.

Model Details

Description

🧠 Fine-tuned transformer model for solving math problems and answering technical questions in 🇯🇵 Japanese and 🇺🇸 English.

  • Base Model: sbintuitions/sarashina2-13b
  • License: MIT
  • Languages: Japanese, English
  • Model Type: Transformer (Causal LM)

Limitations

⚠️ Known limitations:

  • May generate incorrect or biased answers
  • May hallucinate explanations

🔍 Always verify important outputs.

Get Started

from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Mori-kamiyama/sarashina-13B-finetuned-v1")
tokenizer = AutoTokenizer.from_pretrained("Mori-kamiyama/sarashina-13B-finetuned-v1")

Training Data

🧮 Fine-tuned using 100 randomly shuffled samples from:

  • elyza/JaMARD (Japanese instruction tuning)
  • EleutherAI/hendrycks_math (math reasoning)

Architecture

  • Transformer (Causal LM)
  • Fine-tuned with TRL + Unsloth
Downloads last month
4
Safetensors
Model size
14B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Mori-kamiyama/sarashina-13B-finetuned-v1

Finetuned
(4)
this model
Quantizations
2 models

Datasets used to train Mori-kamiyama/sarashina-13B-finetuned-v1