CoolFace
Modelpublic

rhoahndur/retrosynthesis-qwen3-4b-gguf

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes13downloads
Model Card

Retrosynthesis Qwen3-4B GGUF

Q4KM quantized version of rhoahndur/retrosynthesis-qwen3-4b for CPU inference via llama.cpp.

Size: 2.5 GB Quantization: Q4KM

Usage with llama-cpp-python

python
from llama_cpp import Llama

llm = Llama.from_pretrained(
    repo_id="rhoahndur/retrosynthesis-qwen3-4b-gguf",
    filename="retrosynthesis-qwen3-4b-Q4_K_M.gguf",
    n_ctx=512,
)
output = llm.create_chat_completion(
    messages=[
        {"role": "system", "content": "You are a retrosynthesis expert. Output ONLY reactant SMILES separated by dots."},
        {"role": "user", "content": "Predict the reactants for: CC(=O)Oc1ccccc1C(=O)O"}
    ],
    max_tokens=256,
    temperature=0.7,
)
print(output["choices"][0]["message"]["content"])

Demo

Retrosynthesis AI