Views
No views yet
aungkomyint/tara1.1, with the task narrowed to producing JSON question lists for a user topic, keyword, sentence, or short request.{"questions":["...","...","..."]}tara1.2-questtara-1.2-quest-assistant-7c-json-base4v2LlamaForCausalLMsafetensorscookinghow to smilestarting a small businessdatabase migration riskhow should I think about learning biology?questions array.1import json
2import torch
3from transformers import AutoModelForCausalLM, AutoTokenizer
4
5repo_id = "aungkomyint/tara1.2-quest"
6
7tokenizer = AutoTokenizer.from_pretrained(repo_id)
8model = AutoModelForCausalLM.from_pretrained(repo_id)
9model.eval()
10
11def generate_questions(user_text):
12 prompt = f"User: {user_text.strip()}\nAssistant:\n"
13 inputs = tokenizer(prompt, return_tensors="pt")
14 inputs.pop("token_type_ids", None)
15
16 with torch.no_grad():
17 output = model.generate(
18 **inputs,
19 max_new_tokens=160,
20 do_sample=True,
21 temperature=0.7,
22 top_p=0.9,
23 repetition_penalty=1.18,
24 pad_token_id=tokenizer.pad_token_id,
25 eos_token_id=tokenizer.eos_token_id,
26 )
27
28 text = tokenizer.decode(output[0], skip_special_tokens=True)
29 reply = text.split("Assistant:", 1)[-1].strip()
30 return reply
31
32reply = generate_questions("cooking")
33print(reply)
34
35try:
36 data = json.loads(reply)
37 print("question count:", len(data.get("questions", [])))
38except json.JSONDecodeError:
39 print("Model did not return valid JSON for this sample.")1User: cooking
2Assistant:1{
2 "questions": [
3 "What constraints around time, money, energy, or rules shape cooking?",
4 "Which part of cooking is most uncertain right now?",
5 "How would a beginner and an expert frame cooking differently?",
6 "Why does cooking matter for the larger goal?",
7 "What evidence would make your thinking about cooking more reliable?"
8 ]
9}1temperature=0.7
2top_p=0.9
3repetition_penalty=1.18
4max_new_tokens=160tara1.2-quest is a successor experiment to aungkomyint/tara1.1. Tara 1.1 was a broader tiny assistant experiment. Tara 1.2 Quest narrows the behavior to JSON question generation.Aung Ko Myint. Tara 1.2 Quest. 2026. Hugging Face model checkpoint.