Downloads · 30 days
216
12% of all-time downloads
ytu-ce-cosmos/Turkish-Gemma-4b-T1-Scout
Turkish-Gemma-4b-T1-Scout is a text generation model from ytu-ce-cosmos. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
<img src="./cosmos-gemma-4b-t1-scout.png"/
Downloads · 30 days
216
12% of all-time downloads
All-time downloads
1.8K
Public
Parameters
4.3B
10 GB on disk
Likes
11
Public
Click a slice to open those files.
.safetensors9.9 GB · 100%
From the Hugging Face model README
Turkish-Gemma-4b-T1-Scout is a Turkish web-search agent model designed for multi-step information seeking, evidence-grounded answer generation, and tool-augmented reasoning. The model is built on top of an open base LLM and adapted using synthetic trajectory data through supervised fine-tuning (SFT) and GRPO-based reinforcement learning for better tool use, search decisions, and final answer synthesis.
The overall goal of the project is to reduce hallucinations on Turkish questions that require current, rare, or multi-step factual lookup by combining:
This folder contains the model weights, tokenizer, generation config, a custom chat template, and a custom tool parser for vLLM. It does not include the full browsing runtime, benchmark files, search backend, or training pipeline code.
Compared with a standard instruction-tuned checkpoint, this model was trained around an agentic interaction format. The local files in this repository include:
cosmos_chat_template.jinja: custom chat template with tool instructionscosmos_gemma_tool_parser.py: custom vLLM tool parser for parsing <tool_call>...</tool_call> blocks during agent executionThis model is intended for Turkish queries that involve:
Unlike a standard chat model, this checkpoint is trained for reasoning + acting behavior. During agent execution, it can generate intermediate tool calls and then produce a final natural language answer.
The template also supports <think> and <tool_call> tags, so deployment systems should be prepared to handle structured tool-use output.
This model is focused specifically on the Turkish language and Turkish web ecosystem, and was trained with a multi-stage SFT + GRPO pipeline using trajectory-style supervision rather than plain QA alone. It was evaluated on a human-written Turkish Web Search Benchmark designed to measure agentic search behavior.
Training was carried out in multiple stages. First, around 300,000 synthetic reasoning prompts were generated to improve structured reasoning behavior before search specialization. Then, around 100,000 synthetic web-search prompts were created, of which 1,463 were retained after filtering for cases that genuinely required web search. The final training pipeline consisted of reasoning-oriented SFT, web-search SFT, and GRPO-based reinforcement learning.
The project introduces a Turkish Web Search Benchmark consisting of 70 human-written questions, grouped by difficulty:
Representative examples include:
The report compares base models and tool-augmented models.
| Model | Correct | Wrong | Not Attempted | Average tool calls |
|---|---|---|---|---|
| Turkish-Gemma-27b-T1-Scout | 87.14% (61/70) | 12.86% | 0.00% | 10.07 |
| Turkish-Gemma-4b-T1-Scout | 71.43% (50/70) | 22.86% | 5.71% | 4.44 |
| Gemma-3-27B | 10.00% (7/70) | 90.00% | 0.00% | — |
| Gemma-3-4B | 5.71% (4/70) | 94.29% | 0.00% | — |
This model is suitable for Turkish web-search assistants, tool-using research agents, retrieval-augmented conversational systems, and academic or open-source agent experiments. It is not a complete production system by itself: reproducing the intended behavior still requires an external search or browsing backend, tool schemas exposed to the model, execution logic for emitted tool calls, post-processing of tool results, and safety or citation controls around final answers.
This model is not intended for fully autonomous decision-making systems or for professional legal, medical, or financial advice. It should also not be treated as standalone browsing software or as a guaranteed source of truth without external verification. Human oversight, logging, and additional safeguards are recommended in high-stakes settings.
The training setup encourages outputs of the following general form:
<think>...</think><tool_call>{...}</tool_call><think>...</think> followed by a natural language answerAs a result, this model works best inside an agent runtime. A typical execution loop is:
The agent was trained with a compact function-calling interface centered on web retrieval and evidence extraction. The main functions were:
search(query, max_results, recency_days, time_range) for general web searchbrowse(url, max_chars, js_render, timeout_s) for opening pages and extracting readable textfind_in_page(url, patterns, mode, within_chars, context_chars, case_sensitive, use_regex, max_results) for locating evidence inside crawled page textpaper_search(query, limit, year_from, year_to, fields, venue, sort) for academic search via Semantic ScholarThis interface was used during both trajectory generation and agent training. In deployment, equivalent external tools or APIs are required for full agent functionality.
For agentic use, you should keep the custom formatting artifacts in the same repository:
cosmos_chat_template.jinjacosmos_gemma_tool_parser.pyThe parser expects tool calls in blocks like:
<tool_call>
{"type":"function","function":{"name":"browse","arguments":{"query":"..."}}}
</tool_call>
Use
Temperature=0.6,TopP=0.95,TopK=64. DO NOT use greedy decoding, as it can lead to performance degradation and endless repetitions.
max_new_tokens. You can increase the repetition penalty and also adjust the presence_penalty parameter (between 0 and 2) to reduce endless repetitions. However, using a higher value may occasionally result in language mixing and a slight decrease in model performanceThanks to Hugging Face for hosting models on S3 storage.
Compute resources were provided by the Barcelona Supercomputing Center
COSMOS AI Research Group – Yildiz Technical University, Computer Engineering Department
🔗 https://cosmos.yildiz.edu.tr/
✉️ [email protected]