Instructions to use pathcosmos/JANSORI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pathcosmos/JANSORI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pathcosmos/JANSORI")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pathcosmos/JANSORI") model = AutoModelForCausalLM.from_pretrained("pathcosmos/JANSORI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use pathcosmos/JANSORI 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 pathcosmos/JANSORI:Q4_K_M # Run inference directly in the terminal: llama cli -hf pathcosmos/JANSORI:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf pathcosmos/JANSORI:Q4_K_M # Run inference directly in the terminal: llama cli -hf pathcosmos/JANSORI:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf pathcosmos/JANSORI:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf pathcosmos/JANSORI:Q4_K_M
Use Docker
docker model run hf.co/pathcosmos/JANSORI:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use pathcosmos/JANSORI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pathcosmos/JANSORI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pathcosmos/JANSORI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pathcosmos/JANSORI:Q4_K_M
- SGLang
How to use pathcosmos/JANSORI 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 "pathcosmos/JANSORI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pathcosmos/JANSORI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "pathcosmos/JANSORI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pathcosmos/JANSORI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use pathcosmos/JANSORI with Ollama:
ollama run hf.co/pathcosmos/JANSORI:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use pathcosmos/JANSORI with Docker Model Runner:
docker model run hf.co/pathcosmos/JANSORI:Q4_K_M
- Lemonade
How to use pathcosmos/JANSORI with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pathcosmos/JANSORI:Q4_K_M
Run and chat with the model
lemonade run user.JANSORI-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Add standard-benchmark evaluation notes and runtime optimization records (ko-llm-bench-suite)
b1d350f verified Download Modelfile.suite from pathcosmos/JANSORI: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/pathcosmos/JANSORI/resolve/refs%2Fpr%2F1/Modelfile.suite
- Command line
-
hf download hf://pathcosmos/JANSORI@refs/pr/1/Modelfile.suite
-
curl -L -o Modelfile.suite https://huggingface.co/pathcosmos/JANSORI/resolve/refs%2Fpr%2F1/Modelfile.suite
513 Bytes
| # JANSORI 3B (base) โ ์ฌ์ ํ์ต๋ง ํ ๋ชจ๋ธ: ์๋ฌธ ์ด์ด์ฐ๊ธฐ | |
| # ์ฌ์ฉ๋ฒ: <PATH_TO_GGUF>๋ฅผ dense-3b-47k-{Q8_0,Q4_K_M}.gguf ๊ฒฝ๋ก๋ก ๋ฐ๊พผ ๋ค | |
| # ollama create jansori-3b -f modelfiles/Modelfile.jansori-3b | |
| # ํ์ต ํ์ (configs/standard/formats.yaml): ๋ฌธ์ = ids + [<|eos|>], BOS ์์, chat ํ ํ๋ฆฟ ์์. | |
| # 2026-11-18 ๊ฒ์ฆ: llama.cpp ํ ํฐํ 24/24 ์ผ์น(BOS ์ถ๊ฐ ์์), Ollama prompt_eval_count 8/8 ์ผ์น. | |
| FROM <PATH_TO_GGUF> | |
| TEMPLATE """{{ .Prompt }}""" | |
| PARAMETER num_ctx 4096 | |