Downloads · 30 days
8
13% of all-time downloads
yamura4/scenidiom-qwen3-14b-lora
scenidiom-qwen3-14b-lora is a translation model from yamura4. Use it when you need text moved from one language to another. It is set up for peft.
Downloads · 30 days
8
13% of all-time downloads
All-time downloads
61
Public
Repo size
129 MB
Likes
0
Public
Click a slice to open those files.
.safetensors129 MB · 100%
From the Hugging Face model README
ScenIdiom is a specialized LoRA adapter for Qwen 3 (14B) built to solve a specific linguistic translation challenge: mapping everyday situational descriptions to the correct figurative idioms in both Dutch and English.
Standard translation models often struggle with idioms, defaulting to literal translations that lose the cultural meaning. ScenIdiom was trained to understand context. If you describe a situation, the model will return the most appropriate idiom, its meaning, a natural example sentence, and the cross-lingual equivalent.
This adapter was fine-tuned on a highly curated dataset of ~2,700 situational pairs.
The raw idioms were sourced from respected linguistic databases (Onze Taal for Dutch, EF Education First for English). The data underwent rigorous programmatic filtering to remove dictionary artifacts, historical trivia, and archaic proverbs. Finally, it was instruction-tuned into ChatML format using a 405B parameter teacher model to generate highly varied, natural situational prompts.
Training Hyperparameters (Fireworks AI):
You can load this adapter on top of the base Qwen 3 (14B) model using the standard peft and transformers stack.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load Base Model and Tokenizer
base_model_id = "Qwen/Qwen3-14B"
model = AutoModelForCausalLM.from_pretrained(base_model_id, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
# Attach the ScenIdiom LoRA Adapter
model = PeftModel.from_pretrained(model, "yamura4/scenidiom-qwen3-14b-lora")
# Format your prompt (ChatML)
messages = [
{"role": "system", "content": "Je bent een expert in Nederlandse uitdrukkingen en spreekwoorden. Gegeven een situatie, geef je het meest passende Nederlandse idioom of spreekwoord, samen met de betekenis, een gebruiksvoorbeeld en de Engelse vertaling."},
{"role": "user", "content": "Situatie: I am extremely nervous and my hands are sweating before giving a big presentation to the board of directors."}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to("cuda")
# Generate
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
**Uitdrukking:** pekelzweet zweten
**Betekenis:** Erg nerveus of bang zijn.
**Voorbeeld:** 'Toen hij de vergaderzaal binnenstapte om zijn plannen aan de directie te presenteren, stond hij pekelzweet te zweten.'
**Engels:** sweating bullets / having butterflies in your stomach