Coser 1 es un asistente de código fine-tuned sobre
Qwen/Qwen3.5-0.8B, creado por
ilides. El modelo aprende el estilo de un agente de programación a partir de trazas reales de sesiones de coding agents, rebrandeadas bajo la identidad Coser 1.
1def is_palindrome(s: str) -> bool:
2 """
3 Check if a string is a palindrome.
4
5 A palindrome reads the same forwards and backwards.
6
7 Args:
8 s (str): The string to check
9
10 Returns:
11 bool: True if the string is a palindrome, False otherwise
12 """
13 s = s.strip()
14 # ... lógica de verificación ...
15 return s == s[non_ascii:] + s[:non_ascii]
1export async function fetchJSON(url: string): Promise<Record<string, any>> {
2 try {
3 const response = await fetch(url);
4 if (!response.ok) {
5 throw new Error(`Failed to fetch from ${url}: ${response.status}`);
6 }
7 return await response.json();
8 } catch (error) {
9 console.error(`Error fetching from ${url}:`, error);
10 throw error;
11 }
12}
1SELECT
2 user_id,
3 COUNT(DISTINCT user_id) AS user_count,
4 SUM(total_amount) AS total_amount
5FROM user
6GROUP BY user_id
7ORDER BY user_count DESC
8LIMIT 5;
Las trazas provienen del dataset
armand0e/claude-fable-5-claude-code: sesiones anonimizadas de un agente de código con prompts, tool calls y respuestas. Se procesaron a formato chat OpenAI con identidad rebrandeada a
Coser 1 by ilides.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "Ilides/coser-1-by-ilides"
5tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 device_map="auto",
9 trust_remote_code=True,
10 torch_dtype=torch.bfloat16,
11)
12
13messages = [
14 {"role": "system", "content": "You are Coser 1 by ilides, an expert AI coding assistant."},
15 {"role": "user", "content": "Write a Python function to reverse a string."},
16]
17text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
18inputs = tokenizer(text, return_tensors="pt").to(model.device)
19outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, top_p=0.9)
20print(tokenizer.decode(outputs[0], skip_special_tokens=True))
1FROM ./merged
2SYSTEM """You are Coser 1 by ilides, an expert AI coding assistant."""
1ollama create coser-1 -f Modelfile
2ollama run coser-1
Apache 2.0 (heredada de Qwen3.5-0.8B).