Dedicated Endpoints

Run this model inference on single tenant GPU with unmatched speed and reliability at scale.

Learn more
Container

Run this model inference with full control and performance in your environment.

Learn more

Get help setting up a custom Dedicated Endpoints.

Talk with our engineer to get a quote for reserved GPU instances with discounts.

README

License: apache-2.0

What this model does

Given a concurrent Go program and a partial execution trace (goroutine scheduler events), predict the next scheduler event:

markdown

Input: Go program source + partial trace (GoStart, GoBlock, GoUnblock, GoCreate, GoEnd, GoSched events)
Output: {"event_type": "GoBlock", "goroutine_id": 3, "reasoning": "...", "confidence": "high"}

Training

SettingValue
Base modelQwen/Qwen2.5-Coder-7B-Instruct
MethodUnsloth + QLoRA
Datasetkavirubc/weave-bench

Results (Phase 13)

ModelAccuracyNotes
Qwen2.5-Coder-7B fine-tuned (this model)36.2%Phase 13 on GoKer held-out set
Qwen2.5-Coder-1.5B fine-tuned40.2%Phase 12 (in-distribution evaluation)

Usage

python

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-Coder-7B-Instruct",
torch_dtype=torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(base, "kavirubc/weave-ccwm-qwen2.5-coder-7b-lora")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct")

Or use the eval script from the repo:

bash

uv run python scripts/run_eval_unsloth.py \
--adapter kavirubc/weave-ccwm-qwen2.5-coder-7b-lora \
--val_file dataset/output/kaggle_upload/val_point_dups.jsonl

Citation

bibtex

@misc{weave2026,
author = {Hapuarachchi, Kaviru},
title = {Weave: Concurrent Code World Models},
year = {2026},
url = {https://github.com/kaviru2/Weave}
}

Model provider

kavirubc

Model tree

Base

Qwen/Qwen2.5-Coder-7B-Instruct

Adapter

this model

Modalities

Input

Text

Output

Text

Pricing

Dedicated Endpoints

View details

Supported Functionality

Model APIs

Dedicated Endpoints

Container

More information

Explore FriendliAI today