t
ttl_1/SciCore-Mol
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

SciCore-Mol (OpenBMB/SciCore-Mol)

Model Overview

SciCore-Mol is a large language model based on the Qwen3 architecture, developed by OpenBMB. It is designed for scientific computing and chemistry-related tasks, with strong capabilities in molecular understanding and scientific reasoning.

  • Architecture: Qwen3ForCausalLM
  • Model Type: Dense LLM (Standard full attention)
  • Parameters: ~8.2B
  • Context Length: 40960 tokens
  • Attention: GQA (Grouped Query Attention)
  • Hidden Size: 4096
  • Layers: 36
  • Heads: 32 (8 KV heads)
  • Dtype: bfloat16

Ascend NPU Adaptation Report

Analysis Summary

ItemStatus
ArchitectureQwen3ForCausalLM
vLLM RegistryAlready supported
Attention TypeFull attention (GQA)
QuantizationNone
MoENo
MLANo

Operator Compatibility

All operators used by Qwen3 are natively supported on Ascend NPU:

  • PyTorch native ops: Fully supported
  • No Triton kernels requiring verification
  • No CUDA-specific operators
  • No custom kernels

Validation Results

Dummy Weight Test

Status: Passed

INFO  [model.py:533] Resolved architecture: Qwen3ForCausalLM
INFO  [model_runner_v1.py:2589] Loading model weights took 15.2820 GB
INFO  [worker.py:357] Available KV cache memory: 38.94 GiB
INFO  [llm.py:391] Supported tasks: ['generate']
Output: '寓መ寓መ寓መ寓መ'
Token IDs: [101516, 148580, 101516, 148580, 101516, 148580, 101516, 148580]
SUCCESS: Dummy weight test passed

Real Weight Test on Ascend NPU

Status: Passed

Model loaded successfully with real weights from ModelScope:

INFO  [model.py:533] Resolved architecture: Qwen3ForCausalLM
INFO  [model_runner_v1.py:2562] Starting to load model /tmp/scicore-mol...
Loading safetensors checkpoint shards: 100% Completed | 4/4 [00:46<00:00, 11.56s/it]
INFO  [default_loader.py:384] Loading weights took 46.29 seconds
INFO  [model_runner_v1.py:2589] Loading model weights took 15.2820 GB
INFO  [worker.py:357] Available KV cache memory: 38.94 GiB
INFO  [kv_cache_utils.py:1316] GPU KV cache size: 283,520 tokens
INFO  [core.py:281] init engine (profile, create kv cache, warmup model) took 5.32 seconds
INFO  [llm.py:391] Supported tasks: ['generate']

Prompt: "Hello, how are you?"
NPU Output: " I'm sorry for the late reply."
NPU Token IDs: [358, 2776, 14589, 369, 279, 3309, 9851, 13]

NPU vs CPU Precision Comparison

Test Environment:

  • NPU: Ascend NPU (CANN 8.5.1)
  • CPU: ARM64 CPU (same machine, via VLLM_TARGET_DEVICE=cpu)
  • Dtype: bfloat16
  • Temperature: 0 (greedy decoding)
  • Max tokens: 16

Note: GPU was not available in the test environment. CPU serves as the precision baseline for validation.

Multi-Prompt Comparison Results:

#PromptNPU OutputCPU OutputMatch
1Hello, how are you?" I'm sorry for the late reply. I'm currently in the middle of a"" I'm sorry for the late reply. I'm currently in the middle of a"16/16
2What is the chemical formula for water?" The chemical formula for water is H₂O, which consists of two hydrogen atoms"" The chemical formula for water is H₂O, which consists of two hydrogen atoms"16/16
3Explain quantum mechanics in simple terms." Quantum mechanics is a fundamental theory in physics that describes the behavior of the smallest particles"" Quantum mechanics is a fundamental theory in physics that describes the behavior of the smallest particles"16/16
4The capital of France is" Paris. The capital of Italy is Rome. The capital of Spain is Madrid."" Paris. The capital of Italy is Rome. The capital of Spain is Madrid."16/16
51 + 1 =" 2\n\n# 1. Two Sum\n\nGiven an array of integers `"" 2\n\n# 1. Two Sum\n\nGiven an array of integers `"16/16

Token-by-Token Comparison (Prompt 1):

PositionNPU TokenCPU TokenMatch
1358358Yes
227762776Yes
31458914589Yes
4369369Yes
5279279Yes
633093309Yes
798519851Yes
81313Yes
9358358Yes
1027762776Yes
1150235023Yes
12304304Yes
13279279Yes
1461496149Yes
15315315Yes
16264264Yes

Precision Summary:

MetricValue
Total Prompts Tested5
Total Tokens Compared80 (5 x 16)
Matching Tokens80
Mismatched Tokens0
Match Rate100%
First DivergenceNone

Feature Status Matrix

FeatureStatus
Text GenerationSupported and verified
ACLGraphSupported
Chunked PrefillSupported
Prefix CachingSupported
Tensor ParallelismSupported (not tested)

Runbook

Server Startup

vllm serve /path/to/scicore-mol \
  --dtype bfloat16 \
  --max-model-len 4096 \
  --max-num-seqs 16 \
  --trust-remote-code \
  --port 8000

Validation

# Readiness check
curl -sf http://127.0.0.1:8000/v1/models

# Text inference
curl -s http://127.0.0.1:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"scicore-mol","messages":[{"role":"user","content":"say hi"}],"temperature":0,"max_tokens":16}'

Code Changes

None required. The Qwen3ForCausalLM architecture is already natively supported in vLLM and works on Ascend NPU without any modifications.

Conclusion

SciCore-Mol is fully compatible with vLLM-Ascend. No adapter code is needed - the model works out-of-the-box using the existing Qwen3 implementation in vLLM. Precision validation shows 100% token-level agreement between NPU and CPU outputs across 5 diverse prompts (80 tokens total).