Instructions to use vincentzhou/jev-student-4b-yizao with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vincentzhou/jev-student-4b-yizao with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vincentzhou/jev-student-4b-yizao") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("vincentzhou/jev-student-4b-yizao") model = AutoModelForCausalLM.from_pretrained("vincentzhou/jev-student-4b-yizao", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - jev-style
How to use vincentzhou/jev-student-4b-yizao with jev-style:
pip install jev-style # GGUF builds score through llama.cpp: build the jev-score binary once hf download vincentzhou/jev-student-4b-yizao build_jev_score.sh jev_score.cpp --local-dir jev-score export JEV_SCORE_BIN=$(sh jev-score/build_jev_score.sh /path/to/llama.cpp | tail -n 1)
from jev_style import JevStyle, noul, choice js = JevStyle.from_pretrained("vincentzhou/jev-student-4b-yizao") out = js.decide("I was charged twice for one order.", { "billing": noul("This message is about billing."), "team": choice("Which team should handle it?", ["billing", "shipping", "tech"]), }) print(out["answers"]["team"]["choice"]) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use vincentzhou/jev-student-4b-yizao with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf vincentzhou/jev-student-4b-yizao:Q8_0 # Run inference directly in the terminal: llama cli -hf vincentzhou/jev-student-4b-yizao:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf vincentzhou/jev-student-4b-yizao:Q8_0 # Run inference directly in the terminal: llama cli -hf vincentzhou/jev-student-4b-yizao:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf vincentzhou/jev-student-4b-yizao:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf vincentzhou/jev-student-4b-yizao:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf vincentzhou/jev-student-4b-yizao:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf vincentzhou/jev-student-4b-yizao:Q8_0
Use Docker
docker model run hf.co/vincentzhou/jev-student-4b-yizao:Q8_0
- LM Studio
- Jan
- vLLM
How to use vincentzhou/jev-student-4b-yizao with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vincentzhou/jev-student-4b-yizao" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vincentzhou/jev-student-4b-yizao", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/vincentzhou/jev-student-4b-yizao:Q8_0
- SGLang
How to use vincentzhou/jev-student-4b-yizao with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "vincentzhou/jev-student-4b-yizao" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vincentzhou/jev-student-4b-yizao", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "vincentzhou/jev-student-4b-yizao" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vincentzhou/jev-student-4b-yizao", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use vincentzhou/jev-student-4b-yizao with Ollama:
ollama run hf.co/vincentzhou/jev-student-4b-yizao:Q8_0
- Unsloth Desktop
- Pi
How to use vincentzhou/jev-student-4b-yizao with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vincentzhou/jev-student-4b-yizao:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "vincentzhou/jev-student-4b-yizao:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use vincentzhou/jev-student-4b-yizao with Docker Model Runner:
docker model run hf.co/vincentzhou/jev-student-4b-yizao:Q8_0
- Lemonade
How to use vincentzhou/jev-student-4b-yizao with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vincentzhou/jev-student-4b-yizao:Q8_0
Run and chat with the model
lemonade run user.jev-student-4b-yizao-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use vincentzhou/jev-student-4b-yizao with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vincentzhou/jev-student-4b-yizao:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default vincentzhou/jev-student-4b-yizao:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use vincentzhou/jev-student-4b-yizao with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vincentzhou/jev-student-4b-yizao:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "vincentzhou/jev-student-4b-yizao:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Use Docker
docker model run hf.co/vincentzhou/jev-student-4b-yizao:Q8_0Jev-Student-4B 一造(一造考试出题产线决策模型)
蒸馏自三票评审面板(规则 + DeepSeek 两段式 + TypeSafe Jev 1.13 软标签)的一造考试决策模型。 不生成文本——读入题目,单 token 读出类型化判断(字母受限 softmax)。
能力(与商业 Jev 1.13 零样本对照)
| 任务 | 本模型 (r4) | Jev 1.13 零样本 |
|---|---|---|
| 章路由(题→教材章,n=325) | 87.4% | 87.1% |
| 考点路由 top1/top3(题→考点,n=383) | 84.9% / 97.1% | 78.1% / 94.5% |
| 缺陷类型判定(六分类) | 90.5% | — |
| 条件可解性判定 | 96.0% | — |
| 处置动作(可发布/小修/退回) | 91.0% | — |
| ECE(T=0.5 锐化后) | 0.042 | — |
泛化检验(77 枚训练外缺陷探针 + 479 道全新试卷):新缺陷模式抓捕 96–100%、原题误标 9%、与权威判读一致率 77–85%。每个新缺陷类型 = 注入机新模式 + 探针库新条目,覆盖可持续扩张。
用法(字母读出协议)
User: Context:
{题目与选项,标注答案与解析}
Question: {问题}
Options:
A) ...
B) ...
Answer with the letter only.
Assistant: The answer is
对候选字母的 next-token logits 做受限 softmax 得概率(推理温度建议 T=0.5)。
训练
- 基座 Qwen3.5-4B-Base + LoRA r16(注意力投影),1 epoch,lr 5e-5,bf16
- 数据 14,151 样本:八类缺陷注入对比对 778 对(含 Jev 软标签)+ 章路由标签 757 + 考点路由标签 893 + AI 模考题 Jev 软标签 783×3 问
- 损失 = 硬标签 CE × 0.5 + Jev 概率 KL × 0.5(软硬混合)
- 训练成本 < $3(Modal L4)
局限
- 领域限一造四科(管理/计价/土建/安装计量);中文
- 判断非事实保证:概率需按业务阈值使用,建议置信度门控 + 人工复核
- 不做精确计算/多步推理(交给规则与代码)
- 考点路由为章内二级协议(先章后考点)
- Downloads last month
- 572
Model tree for vincentzhou/jev-student-4b-yizao
Base model
Qwen/Qwen3.5-4B-Base
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "vincentzhou/jev-student-4b-yizao"# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vincentzhou/jev-student-4b-yizao", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'