Image-Text-to-Text
Transformers
Safetensors
Korean
English
qwen3_5
vocabulary-pruning
korean
warmly
conversational
Instructions to use neureps/Qwen3.5-2B-enko with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use neureps/Qwen3.5-2B-enko with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="neureps/Qwen3.5-2B-enko") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("neureps/Qwen3.5-2B-enko") model = AutoModelForMultimodalLM.from_pretrained("neureps/Qwen3.5-2B-enko", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use neureps/Qwen3.5-2B-enko with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "neureps/Qwen3.5-2B-enko" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "neureps/Qwen3.5-2B-enko", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/neureps/Qwen3.5-2B-enko
- SGLang
How to use neureps/Qwen3.5-2B-enko 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 "neureps/Qwen3.5-2B-enko" \ --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": "neureps/Qwen3.5-2B-enko", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "neureps/Qwen3.5-2B-enko" \ --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": "neureps/Qwen3.5-2B-enko", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use neureps/Qwen3.5-2B-enko with Docker Model Runner:
docker model run hf.co/neureps/Qwen3.5-2B-enko
Qwen3.5-2B-enko — EN/KO 무손실 어휘 프루닝 마스터
Qwen/Qwen3.5-2B의 어휘(vocab)를 영어·한국어·이모지·기호로 축소한 무손실 프루닝 마스터 체크포인트입니다. 오프라인 SNS 앱 Warmly(온기)의 온디바이스 댓글 생성 모델의 원본이며, 배포용 GGUF(neureps/warmly-qwen35-2b-enko-gguf)는 전부 이 체크포인트에서 변환됩니다.
프루닝 내용 (2026-07-13)
- vocab 248,320 → ~148k (영어 127,658 + 한글 6,807 + 이모지/기호 12,579 + 바이트 256 + 불완전 UTF-8 병합 중간체 816 — 한글 BPE 병합 보존에 필수)
- 파라미터 2.274B → 2.069B (−9.0%) — 임베딩/LM 헤드 행 제거만, 트랜스포머 본체 무변경
- 비전 타워(~314M)와 MTP 헤드는 유지 (이미지 캡션 용도 + 투기적 디코딩 옵션)
- 무손실 검증: 로짓 diff 0.00e+00, greedy 생성 텍스트 동일, heldout NLL 2.9236 → 2.9097 (재정규화로 미세 개선), EN/KO/이모지/코드 토큰화 동일
파일
| 파일 | 설명 |
|---|---|
model.safetensors-00001-of-00001.safetensors + index |
프루닝된 가중치 (bf16) |
tokenizer.json, tokenizer_config.json |
프루닝된 토크나이저 (ID 재매핑됨) |
pruning_keepset.json |
유지한 토큰 ID 목록 — 프루닝 재현/검증용 |
config.json, chat_template.jinja, preprocessor_config.json |
Qwen3.5 멀티모달 구성 그대로 |
사용 시 주의
- GGUF 변환:
convert_hf_to_gguf.py --no-mtp필수. 프루닝으로 토크나이저 ID가 바뀌어 pre-tokenizer 해시 인식이 실패하므로 llama.cppconversion/base.py에 chkhsh2ea57f33edce905f802c34481a40988d30561d6671cd441c4eb8319e723a677a→res = "qwen35"항목 추가 필요 (0.8B/2B 공통). - 추론 시
enable_thinking: false를 넘기지 않으면 전 토큰이 reasoning으로 소모돼 출력이 빕니다. - Q4_K_M 이하 양자화는 도메인 imatrix 없이는 한국어 단어 오류가 늘어납니다(−2~3/20). imatrix는 GGUF 리포에 포함.
관련 리포
- 배포 GGUF: neureps/warmly-qwen35-2b-enko-gguf
- 0.8B 마스터: neureps/Qwen3.5-0.8B-enko
- Downloads last month
- 42
Model tree for neureps/Qwen3.5-2B-enko
Base model
Qwen/Qwen3.5-2B-Base Finetuned
Qwen/Qwen3.5-2B