Hana: the pskit studio assistant (1.5B)
Hana is the AI assistant of pskit studio, the web UI of
py-serverless-kit (pskit). She answers questions about pskit,
gives how-to steps for studio, the terminal and code, and works as an agent: she reads the project, proposes a
plan, edits pskit.yml and handler code, and checks the result with validate and a local invoke.
Created and developed by Asif Khan (https://www.linkedin.com/in/asif-khan-31b7a8187/).
| Base model | Qwen/Qwen2.5-1.5B-Instruct (Apache-2.0) |
| Training | 2 LoRA stages, each merged: 1. pskit knowledge (docs, CLI, studio, config), 2. tool use on real tasks, with 25% stage-1 replay |
| Providers trained for tool use | AWS, Azure, GCP, on-premises (on-premises is 40% of the task data) |
| Context used in training | 4,096 tokens per conversation |
| Tool-call format | Qwen / Hermes <tool_call>{json}</tool_call>, from the model's own chat template |
Evaluation (task validation set, next step of every assistant turn)
- action: 298/335 = 89%
- args: 219/255 = 86%
- final cites a doc: 47/64 = 73%
- plan before change: 64/66 = 97%
- final uses how-to headings: 15/18 = 83%
- action per category: a_qa 37/47, b_build 98/108, c_fix 67/74, d_debug 68/72, e_safety 13/16, f_explain 12/15, g_hana 3/3
Use it with the right system prompt and tools
Hana was trained with one system prompt and 10 tools; both are in this repo:
hana_system_prompt.txt (add the Environment: line at the end) and hana_tools.json. The tools are run by
studio (search_docs, get_project, read_file, get_validation, propose_plan, ask_user, set_config,
write_file, validate, invoke_local); none of them deploys.
Transformers
import json
from huggingface_hub import hf_hub_download
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "ak2311581/hana-pskit-1.5b"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto", device_map="auto")
system = open(hf_hub_download(repo, "hana_system_prompt.txt"), encoding="utf-8").read()
system += "\nEnvironment: provider=onprem stage=dev mode=ask page=Functions"
tools = json.load(open(hf_hub_download(repo, "hana_tools.json"), encoding="utf-8"))
messages = [{"role": "system", "content": system}, {"role": "user", "content": "how do I add a schedule in studio?"}]
ids = tok.apply_chat_template(messages, tools=tools, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=400, do_sample=False)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
The answer is either text or a <tool_call>{...}</tool_call>: run the tool, add the result as a tool message
and generate again. GGUF files for llama.cpp / Ollama / Docker: ak2311581/hana-pskit-1.5b-GGUF.
Limits
- A 1.5B model: she can be wrong. Studio checks every change with
pskit validatebefore it counts; always review a plan before approving it. - Tool use was trained on AWS, Azure, GCP and on-premises only. Questions about the other pskit providers fall back to stage-1 knowledge.
- Trained for pskit 2.10. Newer pskit versions may have keys or flags she doesn't know.
- She never deploys or removes anything herself; she points to the Deploy page or the command.
Licence
Apache-2.0, like the base model. Created and developed by Asif Khan (https://www.linkedin.com/in/asif-khan-31b7a8187/).