Views
No views yet
huggingface/your-base-model, trained using the Unsloth library for parameter-efficient fine-tuning (PEFT).
It supports efficient training and inference with significantly reduced VRAM usage while maintaining high performance.huggingface/your-base-modelq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projunsloth mode, reduces VRAM by ~30%)HuggingFaceH4/Multilingual-Thinking1if False:
2 from unsloth import FastLanguageModel
3 model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name = "dexyasir/gpt-oss-20b-Multilingual-Thinking-finetuned", # YOUR MODEL YOU USED FOR TRAINING
5 max_seq_length = 1024,
6 dtype = None,
7 load_in_4bit = True,
8 )
9
10messages = [
11 {"role": "system", "content": "reasoning language: French\n\nYou are a helpful assistant that can solve mathematical problems."},
12 {"role": "user", "content": "Solve x^5 + 3x^4 - 10 = 3."},
13]
14inputs = tokenizer.apply_chat_template(
15 messages,
16 add_generation_prompt = True,
17 return_tensors = "pt",
18 return_dict = True,
19 reasoning_effort = "high",
20).to(model.device)
21from transformers import TextStreamer
22_ = model.generate(**inputs, max_new_tokens = 64, streamer = TextStreamer(tokenizer))@misc{devxyasir/gpt-oss-20b-Multilingual-Thinking-finetuned,
author = {Muhammad Yasir},
title = {LoRA Fine-tuned Model via Unsloth},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/devxyasir/gpt-oss-20b-Multilingual-Thinking-finetuned}}
}