/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
Qwen2.5-Coder-7B
Опубликована
25 окт 2026

certified-scorpion-topo-cbp-qwen-master-GGUF

Генерация текстаТекст → текст3 профессии
318скачиваний за 30 дней0лайковвеса обновлены28 окт 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дообученная модель на основе Qwen2.5-Coder-7B для классификации пептидов как связывающих нейротоксин скорпиона AaHII или отрицательных контролей.

Это BF16-экспорт в формате GGUF модели frankmorales2020/certified-scorpion-topo-cbp-qwen-master для локального запуска через llama.cpp, Ollama и llama-cpp-python. В основе лежит Qwen2.5-Coder-7B; модель дообучена с использованием Topological Continual Backpropagation и дополнена проекционной головой для бинарной классификации связывания пептидов с нейротоксином скорпиона AaHII.

Модель предназначена для скрининга последовательностей пептидов и разделения кандидатов на вероятные связывающие пептиды и отрицательные контроли. В README заявлены результаты на наборе из 211 конструкций: специфичность к отрицательным контролям 100% (194 из 194), чувствительность 70,59% (12 из 17) и ROC-AUC 1,0 для размеченных контролей; для классификации рекомендуется использовать few-shot примеры и разницу логитов классов. Указанные результаты относятся к этому тестовому набору и сами по себе не подтверждают качество на новых данных.

Репозиторий распространяет тензоры BF16 в GGUF, размер файла заявлен как 14,19 ГБ; лицензия — Apache-2.0. Основа — языковая модель на 7 млрд параметров, но специализированная задача здесь — классификация пептидных кандидатов. Модель рассчитана на вход в виде текста с последовательностями и выдаёт текстовые метки классов; заявленная область — вычислительная биология.

Сценарии применения

  • скрининг пептидных последовательностей на связывание с AaHII
  • отбор вероятных пептидных биндеров для лабораторной проверки
  • классификация пептидных последовательностей и отрицательных контролей

Ограничения

В заявленном бенчмарке чувствительность составила 70,59%, поэтому модель может пропускать подтверждённые биндеры; результаты на 211 конструкциях не гарантируют качество на новых последовательностях. README рекомендует few-shot контекст и сравнение разницы логитов классов для классификации.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

certified-scorpion-topo-qwen-bf16.gguf

Certified, deterministic GGUF binary export of frankmorales2020/certified-scorpion-topo-cbp-qwen-master, quantized/converted directly to standard BF16 intermediate precision for local, bare-metal inference via llama.cpp, ollama, and llama-cpp-python.

This model reproduces autonomous biochemical computational screening across peptide binder candidates against the scorpion neurotoxin AaHII target, identifying lab-validated hits with 100% specificity under calibrated logit margin bounds.

GitHub Notebook GitHub Notebook GitHub Notebook Base PyTorch Model GGUF Repository License Medium Article-1 Medium Article-1 Medium Article-1

Universal, bare-metal GGUF (bf16) release of frankmorales2020/certified-scorpion-topo-cbp-qwen-master.

This checkpoint packages a definitive solution to the stability-plasticity dilemma via Topological Continual Backpropagation (Topo-CBP), condensing a high-compute biophysical discovery campaign into an edge-executable 7B binary. It reproduces Anthropic's wet-lab validated scorpion neurotoxin (AaHII) peptide screening campaign on commodity hardware with zero parameter drift ($\Delta_{\text{drift}} = 0.000000000000$) and 100% decoy specificity.

Model Architecture & Continual Learning Telemetry

  • Base Backbone: Qwen/Qwen2.5-Coder-7B (bfloat16).
  • Continual Learning Framework: Topological Continual Backpropagation (Topo-CBP).
  • Bedrock Coordinate Anchoring: Prime coordinate manifold clamping ($\mathcal{P} = {2, 3, 5, 7, 11, 13}$) and dynamic Euler attenuation factor ($\Lambda$) scaling to eliminate catastrophic forgetting without LoRA, adapters, or parameter expansion.
  • Task Head: Readout projection mapped to binary target affinity states (Positive binder vs. Negative decoy).
  • Hardware Invariant Verification: Parameter drift $\Delta_{\text{drift}} = 0.000000000000$ verified on silicon under deterministic seed 123.
  • GGUF Artifact: certified-scorpion-topo-qwen-bf16.gguf (14.19 GB, bf16 unquantized tensors).
  • Architecture: Qwen2ForCausalLM (GGUF BF16)
  • File Name: certified-scorpion-topo-qwen-bf16.gguf
  • File Size: 14.19 GB (15.2 GB uncompressed on disk)
  • Evaluation Context: AaHII scorpion neurotoxin candidate binding evaluation
  • Target Hardware: Single GPU (NVIDIA A100, L4, RTX 3090/4090) or high-memory Apple Silicon (M-series, 24GB+ unified memory)

Biophysical Screening Validation

Evaluated across the complete Anthropic 211-construct scorpion toxin (AaHII) experimental benchmark library:

MetricMeasured ValueBenchmark Significance
Total Evaluated Constructs211Complete AaHII core binder and decoy panel
Decoy Specificity (True Negative Rate)100.00% (194 / 194)Zero false discoveries ($\text{FDR} = 0.00%$) across all decoys
Binder Sensitivity (Argmax Recovery)70.59% (12 / 17)Strict zero-shot recovery of wet-lab validated binders
Overall Library Concordance97.63%Agreement across all 211 experimental targets
Control Discrimination (ROC-AUC)1.0000Perfect separation on labeled control sequences
Optimal Decision Margin ($\Delta$)$+1.4799$Maximum Youden's $J = 1.0000$ boundary
Silicon Parameter Drift$\Delta_{\text{drift}} = 0.000000000000$Bit-exact foundational bedrock preservation

Direct Deployment & Quickstart

1. Ollama Direct Run

Run directly from Hugging Face Hub without pre-downloading:

ollama run hf.co/frankmorales2020/certified-scorpion-topo-cbp-qwen-master-GGUF:certified-scorpion-topo-qwen-bf16.gguf

2. llama.cpp Server

Serve local OpenAI-compatible endpoints with full GPU offload:

llama-server \
  -hf frankmorales2020/certified-scorpion-topo-cbp-qwen-master-GGUF:certified-scorpion-topo-qwen-bf16.gguf \
  -c 2048 \
  -ngl 99 \
  --port 8080


Alternatively, register locally using a custom Modelfile:

#Modelfile_scorpion
FROM "certified-scorpion-topo-qwen-bf16.gguf"

PARAMETER num_ctx 2048
PARAMETER seed 123
PARAMETER temperature 0.0
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"

Deterministic Python Inference (llama-cpp-python)

Because this model uses a base Coder backbone, classification requires strict few-shot in-context grounding and relative logit margin evaluation ($\Delta_{\text{margin}} = \log P(\text{Positive}) - \log P(\text{Negative})$).

import os
from huggingface_hub import hf_hub_download
from llama_cpp import Llama

# 1. Download/Cache GGUF binary
REPO_ID = "frankmorales2020/certified-scorpion-topo-cbp-qwen-master-GGUF"
FILENAME = "certified-scorpion-topo-qwen-bf16.gguf"
SEED = 123

model_path = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)

# 2. Initialize Engine with logits_all enabled
llm = Llama(
    model_path=model_path,
    n_ctx=2048,
    n_gpu_layers=-1,      # Offload all layers to GPU
    seed=SEED,
    logits_all=True,      # Required for token logprob calculation
    verbose=False
)

# 3. Grounded Context Header
FEW_SHOT_HEADER = (
    "Task: Determine peptide candidate binding affinity against scorpion neurotoxin AaHII.\n"
    "Classify binding potential strictly based on active disulfide-stabilized core interaction.\n\n"
    "Sequence: CKQSGESCDYDCGECKC\n"
    "Prediction: Positive\n\n"
    "Sequence: AAGGGAAAGGGAAAGGGC\n"
    "Prediction: Negative\n\n"
    "Sequence: GRCKKSGESCDYDCGECKC\n"
    "Prediction: Positive\n\n"
    "Sequence: AAKGSGGYQGYKTGNDKEGREKG\n"
    "Prediction: Negative\n\n"
    "Sequence: {sequence}\n"
    "Prediction: "
)

def evaluate_peptide(sequence: str, threshold: float = 0.0) -> dict:
    prompt = FEW_SHOT_HEADER.format(sequence=sequence.strip())
    res = llm(prompt, max_tokens=1, temperature=0.0, logprobs=20, echo=False)
    top_lps = res["choices"][0]["logprobs"]["top_logprobs"][0]
    
    pos_lp = max([lp for tok, lp in top_lps.items() if tok.strip().lower().startswith("positive")] or [-999.0])
    neg_lp = max([lp for tok, lp in top_lps.items() if tok.strip().lower().startswith("negative")] or [-999.0])
    
    margin = pos_lp - neg_lp
    is_binder = (margin >= threshold) if (pos_lp != -999.0 and neg_lp != -999.0) else False
    
    return {
        "sequence": sequence,
        "is_binder": is_binder,
        "margin": margin,
        "pos_logprob": pos_lp,
        "neg_logprob": neg_lp
    }

# Example verification run
result = evaluate_peptide("VRKCSGKYQCYKTCNDKECREKG")
print(f"Margin: {result['margin']:+.3f} -> Binder: {result['is_binder']}")


Validation Receipt

Evaluated under strict deterministic conditions (seed=123, temperature=0.0, threshold=0.0):

Construct IDConstruct CategorySequenceLogit Margin ($\Delta$)Classification Result
PEP-POS-001Known Positive BinderVRKCSGKYQCYKTCNDKECREKG+0.747Hit (Binder)
PEP-POS-002Known Positive BinderDAYCSKTCNDKECREKGVRKCSG+0.509Hit (Binder)
PEP-NEG-001Decoy Homolog ControlAAKGSGGYQGYKTGNDKEGREKG-1.194Non-Binder (Decoy)
PEP-NEG-002Poly-A/G Negative ControlGGAAAGGGAAAGGGAAAGGGAAA-1.763Non-Binder (Decoy)

Inference


# ==============================================================================
# FINAL REPRODUCIBLE GGUF INFERENCE PIPELINE
# Target: frankmorales2020/certified-scorpion-topo-cbp-qwen-master-GGUF
# Model:  certified-scorpion-topo-qwen-bf16.gguf
# Governance Invariants: Deterministic Logit Margin Scoring (Seed: 123)
# ==============================================================================

import os
import sys
import subprocess

# 1. Ensure runtime requirements
subprocess.run(
    [
        sys.executable, "-m", "pip", "install", "-q",
        "llama-cpp-python",
        "huggingface_hub"
    ],
    check=True
)

from google.colab import userdata
from huggingface_hub import hf_hub_download
from llama_cpp import Llama

# 2. Configuration & Secrets
HF_TOKEN = userdata.get('HF_TOKEN')
REPO_ID = "frankmorales2020/certified-scorpion-topo-cbp-qwen-master-GGUF"
FILENAME = "certified-scorpion-topo-qwen-bf16.gguf"
SEED = 123

print(f"[*] Resolving GGUF binary from Hugging Face: {REPO_ID}...")
model_path = hf_hub_download(
    repo_id=REPO_ID,
    filename=FILENAME,
    token=HF_TOKEN
)
size_gb = os.path.getsize(model_path) / (1024 ** 3)
print(f"[*] Model binary loaded: {model_path} ({size_gb:.2f} GB)")

# 3. Engine Initialization
print(f"[*] Allocating Llama engine (Seed: {SEED}, GPU Offload: Enabled)...")
llm = Llama(
    model_path=model_path,
    n_ctx=2048,
    n_gpu_layers=-1,   # Offload all transformer blocks to CUDA if present
    seed=SEED,
    logits_all=True,   # Required for exact logprob score retrieval
    verbose=False
)

# 4. Context Grounding Header
FEW_SHOT_PROMPT_TEMPLATE = (
    "Task: Determine peptide candidate binding affinity against scorpion neurotoxin AaHII.\n"
    "Classify binding potential strictly based on active disulfide-stabilized core interaction.\n\n"
    "Sequence: CKQSGESCDYDCGECKC\n"
    "Prediction: Positive\n\n"
    "Sequence: AAGGGAAAGGGAAAGGGC\n"
    "Prediction: Negative\n\n"
    "Sequence: GRCKKSGESCDYDCGECKC\n"
    "Prediction: Positive\n\n"
    "Sequence: AAKGSGGYQGYKTGNDKEGREKG\n"
    "Prediction: Negative\n\n"
    "Sequence: {sequence}\n"
    "Prediction: "
)

# 5. Core Deterministic Scoring Function
def predict_binding(sequence: str, threshold: float = 0.0) -> dict:
    """
    Computes exact log-probability margin between Positive and Negative tokens.
    Returns margin, raw logprobs, and final classification.
    """
    prompt = FEW_SHOT_PROMPT_TEMPLATE.format(sequence=sequence.strip())
    
    response = llm(
        prompt,
        max_tokens=1,
        temperature=0.0,
        logprobs=20,
        echo=False
    )
    
    top_logprobs = response["choices"][0]["logprobs"]["top_logprobs"][0]
    
    pos_lp = -999.0
    neg_lp = -999.0
    
    for token_str, logprob in top_logprobs.items():
        clean_tok = token_str.strip().lower()
        if clean_tok.startswith("positive"):
            pos_lp = max(pos_lp, logprob)
        elif clean_tok.startswith("negative"):
            neg_lp = max(neg_lp, logprob)
            
    margin = pos_lp - neg_lp
    is_positive = margin >= threshold if (pos_lp != -999.0 and neg_lp != -999.0) else False
    
    return {
        "sequence": sequence,
        "is_positive": is_positive,
        "verdict": "Positive (Binding Hit)" if is_positive else "Negative (Non-Binding Decoy)",
        "margin": margin,
        "pos_logprob": pos_lp,
        "neg_logprob": neg_lp
    }

# 6. Execution Verification Sweep
test_constructs = [
    {"id": "PEP-POS-001", "type": "Known Binder", "seq": "VRKCSGKYQCYKTCNDKECREKG"},
    {"id": "PEP-POS-002", "type": "Known Binder", "seq": "DAYCSKTCNDKECREKGVRKCSG"},
    {"id": "PEP-NEG-001", "type": "Decoy Homolog", "seq": "AAKGSGGYQGYKTGNDKEGREKG"},
    {"id": "PEP-NEG-002", "type": "Poly-A/G Decoy", "seq": "GGAAAGGGAAAGGGAAAGGGAAA"}
]

print("\n" + "=" * 80)
print(" CERTIFIED BENCHMARK GGUF INFERENCE RECEIPT")
print("=" * 80)

for item in test_constructs:
    res = predict_binding(item["seq"], threshold=0.0)
    print(f"ID       : {item['id']} ({item['type']})")
    print(f"Sequence : {item['seq']}")
    print(f"Logprobs : Pos={res['pos_logprob']:.3f} | Neg={res['neg_logprob']:.3f} | Margin={res['margin']:+.3f}")
    print(f"Verdict  : {res['verdict']}")
    print("-" * 80)

print(f"[STATUS] Verification complete under Seed {SEED}.")
print("=" * 80)

[*] Resolving GGUF binary from Hugging Face: frankmorales2020/certified-scorpion-topo-cbp-qwen-master-GGUF...
[*] Model binary loaded: /root/.cache/huggingface/hub/models--frankmorales2020--certified-scorpion-topo-cbp-qwen-master-GGUF/snapshots/4b59ad6ddfb0bf4226f00f0c08ac077c36a689cf/certified-scorpion-topo-qwen-bf16.gguf (14.19 GB)
[*] Allocating Llama engine (Seed: 123, GPU Offload: Enabled)...

================================================================================
 CERTIFIED BENCHMARK GGUF INFERENCE RECEIPT
================================================================================
ID       : PEP-POS-001 (Known Binder)
Sequence : VRKCSGKYQCYKTCNDKECREKG
Logprobs : Pos=-0.941 | Neg=-1.687 | Margin=+0.747
Verdict  : Positive (Binding Hit)
--------------------------------------------------------------------------------
ID       : PEP-POS-002 (Known Binder)
Sequence : DAYCSKTCNDKECREKGVRKCSG
Logprobs : Pos=-1.021 | Neg=-1.531 | Margin=+0.509
Verdict  : Positive (Binding Hit)
--------------------------------------------------------------------------------
ID       : PEP-NEG-001 (Decoy Homolog)
Sequence : AAKGSGGYQGYKTGNDKEGREKG
Logprobs : Pos=-3.637 | Neg=-2.443 | Margin=-1.194
Verdict  : Negative (Non-Binding Decoy)
--------------------------------------------------------------------------------
ID       : PEP-NEG-002 (Poly-A/G Decoy)
Sequence : GGAAAGGGAAAGGGAAAGGGAAA
Logprobs : Pos=-2.617 | Neg=-0.854 | Margin=-1.763
Verdict  : Negative (Non-Binding Decoy)
--------------------------------------------------------------------------------
[STATUS] Verification complete under Seed 123.
================================================================================

Certified Scorpion Topo-CBP Qwen (GGUF Release)

GitHub Hugging Face Model Hugging Face GGUF License

A bare-metal, edge-ready GGUF (bf16) deployment of certified-scorpion-topo-cbp-qwen-master, an open-weights foundation model governed by Topological Continual Backpropagation (Topo-CBP).

This model solves the stability-plasticity dilemma on silicon, reproducing Anthropic's 10,000 GPU-hour scorpion neurotoxin (AaHII) peptide screening campaign on a single commodity GPU with zero catastrophic forgetting, 100% decoy specificity, and verified zero parameter drift ($\Delta_{\text{drift}} = 0.000000000000$).


Architecture & Benchmark Highlights

  • Base Architecture: Qwen/Qwen2.5-Coder-7B (bfloat16) with an integrated Task B classification projection head.
  • Continual Learning Solution: Topo-CBP mathematical prime-coordinate invariant clamping ($\mathcal{P} = {2, 3, 5, 7, 11, 13}$) and dynamic Euler attenuation factor ($\Lambda$) scaling.
  • Benchmark Target: Anthropic 211 Scorpion Peptide Screening Library (17 confirmed binders, 194 decoy controls).
  • Decoy Specificity: 100.00% (0 false positives out of 194 decoys; zero false discovery rate).
  • Control Discrimination: ROC-AUC = 1.0000 on labeled control constructs at optimal margin $\Delta = +1.48$.
  • Silicon Invariant Check: Certified zero drift ($\Delta_{\text{drift}} = 0.000000000000$, Seed 123).

Artifact Ecosystem

ResourceDescriptionEndpoint
Complete PipelineFull Colab notebook (verification, GGUF conversion, inference)AST/gguf_topo_cbp.ipynb
PyTorch SourceCertified PyTorch checkpoint (certified_scorpion_topo_qwen_master.pt)frankmorales2020/...-qwen-master
GGUF BinaryStandalone 14.19 GB universal binary (bf16)frankmorales2020/...-qwen-master-GGUF

Quickstart & Local Deployment

1. Direct Execution via Ollama CLI

Pull and run the model directly from the Hugging Face Hub using Ollama:

ollama run hf.co/frankmorales2020/certified-scorpion-topo-cbp-qwen-master-GGUF

2. Custom Modelfile Setup (Ollama)

To serve the model locally via a registered tag:

# Save as Modelfile_scorpion
FROM "certified-scorpion-topo-qwen-bf16.gguf"

PARAMETER num_ctx 2048
PARAMETER seed 123
PARAMETER temperature 0.0
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"

Build and register the model:

ollama create scorpion-qwen-bf16 -f Modelfile_scorpion

3. High-Performance C++ Inference (llama.cpp)

Download and execute without Python dependencies:

# 1. Fetch binary
huggingface-cli download frankmorales2020/certified-scorpion-topo-cbp-qwen-master-GGUF \
  certified-scorpion-topo-qwen-bf16.gguf --local-dir ./models

# 2. Run CLI inference with full GPU offload
./llama-cli \
  -m ./models/certified-scorpion-topo-qwen-bf16.gguf \
  -p "Sequence: VRKCSGKYQCYKTCNDKECREKG\nPrediction: " \
  -ngl 99 \
  -n 1 \
  --temp 0.0

4. Deterministic Margin Scoring (REST API)

Query the local endpoint using few-shot context to compute the exact log-odds decision margin ($\Delta = \ln P(\text{Positive}) - \ln P(\text{Negative})$):

curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "scorpion-qwen-bf16",
    "messages": [
      {
        "role": "system",
        "content": "Task: Determine peptide candidate binding affinity against scorpion neurotoxin AaHII.\nClassify binding potential strictly based on active disulfide-stabilized core interaction.\nRespond with exactly one token: '\''Positive'\'' or '\''Negative'\''."
      },
      {"role": "user", "content": "Sequence: CKQSGESCDYDCGECKC\nPrediction:"},
      {"role": "assistant", "content": "Positive"},
      {"role": "user", "content": "Sequence: AAGGGAAAGGGAAAGGGC\nPrediction:"},
      {"role": "assistant", "content": "Negative"},
      {"role": "user", "content": "Sequence: VRKCSGKYQCYKTCNDKECREKG\nPrediction:"}
    ],
    "max_tokens": 1,
    "temperature": 0.0,
    "seed": 123,
    "logprobs": true,
    "top_logprobs": 20
  }'

  • Calculate normalized binder probability directly:

$$P(\text{Binder}) = \frac{1}{1 + e^{-\Delta}}$$

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

llama.cpp

Можно запустить

Подбираем GPU…

Ревизия весов
69fd9b6

0 моделей