How to use from
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 "wnma3mz/Janus-Pro-1B-LM" \
    --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": "wnma3mz/Janus-Pro-1B-LM",
		"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 "wnma3mz/Janus-Pro-1B-LM" \
        --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": "wnma3mz/Janus-Pro-1B-LM",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

This model is derived from https://huggingface.co/deepseek-ai/Janus-Pro-1B and the main modifications are as follows

  • bin files are updated to safetensors
  • Add chat_template

4bit refers to quantifying the LLM part to 4 bits.

LM means that it contains only the language model part.

Quick Start

In Macos (Apple silicon), use mlx framework https://github.com/wnma3mz/tLLM

tllm.server --model_path $MODEL_PATH --hostname localhost --is_local --client_size 1

$MODEL_PATH like wnma3mz/Janus-Pro-1B-4bit

Downloads last month
11
Safetensors
Model size
2B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for wnma3mz/Janus-Pro-1B-LM

Finetuned
(6)
this model
Quantizations
2 models

Collection including wnma3mz/Janus-Pro-1B-LM