Views
No views yet
| Type | Turkish name | Example use case |
|---|---|---|
| Disciplinary record | Disiplin tutanağı | Structuring a workplace incident interview |
| Ethics hotline report | Etik hattı bildirimi | Anonymized whistleblower report intake |
| Internal audit finding | İç denetim bulgusu | Turning an auditor's raw note into a findings record |
| Performance consistency check | Performans tutarlılık kontrolü | Flagging inconsistencies in review notes |
1from llama_cpp import Llama
2from transformers import AutoTokenizer
3
4REPO_ID = "mustafabasar/ik-belge-asistani-qwen3.5-4b"
5
6llm = Llama.from_pretrained(
7 repo_id=REPO_ID,
8 filename="ik-belge-asistani-qwen3.5-4b.Q4_K_M.gguf",
9 n_ctx=4096,
10 n_gpu_layers=0, # CPU-only; raise this if you have a GPU
11)
12tokenizer = AutoTokenizer.from_pretrained(REPO_ID)
13
14messages = [
15 {"role": "system", "content": "You are an HR document assistant. Structure raw notes into only the requested JSON fields, without adding invented information. Never assert something you are not sure about."},
16 {"role": "user", "content": "Structure this internal audit finding into the requested JSON fields; state only verified facts and flag anything unconfirmed.\n\nWarehouse B, Izmir. During the March inventory count, 47 units of SKU-2291 were found missing from the system record."},
17]
18prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
19out = llm(prompt, max_tokens=400, temperature=0.1, stop=["<|im_end|>"])
20print(out["choices"][0]["text"])1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3REPO_ID = "mustafabasar/ik-belge-asistani-qwen3.5-4b"
4model = AutoModelForCausalLM.from_pretrained(REPO_ID)
5tokenizer = AutoTokenizer.from_pretrained(REPO_ID)enable_thinking=False in apply_chat_template. This model was fine-tuned to answer directly with structured JSON; with thinking enabled it will emit reasoning text instead.bulgu, kanit). These are fixed schema keys the model learned as structural constants rather than translatable text, not a bug — a fully bilingual schema would require retraining with an English-schema dataset.