Request it for the seed queue, or get it now with pf download GhostScientist/semanticwiki-coder-7b-v2-merged (CLI guide).
This is a standalone Transformers model that generates DeepWiki-style technical documentation from source code. It can produce structured Markdown, source-file references, Mermaid diagrams, tables, and inline citations.
The original fine-tune was a LoRA adapter trained on top of
Qwen/Qwen2.5-Coder-7B-Instruct. This repository contains the adapter merged into the base
weights, so users do not need PEFT or a separate adapter repository.
The merged format is easier to use with standard Transformers tooling and is the required starting point for conversion to Apple-Silicon MLX format. The merge changes packaging, not the model's intended behavior.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "GhostScientist/semanticwiki-coder-7b-v2-merged"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
messages = [
{"role": "user", "content": "<START_OF_CONTEXT>\n[source code]\n<END_OF_CONTEXT>\n\n<query>\nExplain the architecture.\n</query>"}
]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Qwen/Qwen2.5-Coder-7B-InstructGhostScientist/semanticwiki-coder-7b-v2merge_and_unloadThe base model is distributed under its upstream license. Review the base model card and applicable terms before redistribution or commercial use.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo GhostScientist/semanticwiki-coder-7b-v2-merged ./model-foldermodel-00003-of-00004.safetensors 5.0 GBmodel-00001-of-00004.safetensors 5.0 GBmodel-00002-of-00004.safetensors 4.9 GBmodel-00004-of-00004.safetensors 330 MB