Run this model with HF Jobs
Run yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit
- SGLang
How to use yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit 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 "yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit" \ --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": "yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit", "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 "yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit" \ --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": "yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit with Docker Model Runner:
docker model run hf.co/yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit
Yunmo-Next-1B-Base-bnb-4bit
bitsandbytes NF4 version of Yunmo-Next-1B-Base, the pretrained (not instruction-tuned) model. The model, its training, evaluation and limitations are described in the full-precision repository, Yunmo-Next-1B-Base.
Research checkpoint. The model is at chance on knowledge multiple choice, often wrong on facts, sometimes repeats itself until the token limit, and has no safety tuning. Read the Limitations of the full-precision card before use.
| Format | NF4 weights with double quantization, BF16 compute |
| Quantized layers | 645 of 645 linear layers |
| Kept in BF16 | tied embedding / output layer, norms, convolutions, router |
| Size | 0.62 GB |
Bits per byte on 3,754 Chinese Wikipedia articles created after 2026-10-01: 0.9246 against 0.9178 for BF16 (+0.0067). bitsandbytes runs the eager decode loop; for the Instruct model in the same format we measured about 140 ms per token on an RTX 4070 Ti, against about 11 ms for BF16 with CUDA graphs. Use it to save memory, not for speed.
pip install "transformers>=5.14,<6" "flash-linear-attention==0.5.2" bitsandbytes accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, device_map="cuda:0").eval()
ids = tokenizer("光合作用是指", return_tensors="pt")["input_ids"].cuda()
out = model.generate(ids, max_new_tokens=64)
print(tokenizer.decode(out[0], skip_special_tokens=True))
License: Apache-2.0, as for Yunmo-Next-1B-Base.
- Downloads last month
- 34
Model tree for yuhuanstudio/Yunmo-Next-1B-Base-bnb-4bit
Base model
yuhuanstudio/Yunmo-Next-1B-Base