Instructions to use FoolDev/Janus-35B-HERETIC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FoolDev/Janus-35B-HERETIC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="FoolDev/Janus-35B-HERETIC") 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 AutoModel model = AutoModel.from_pretrained("FoolDev/Janus-35B-HERETIC", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use FoolDev/Janus-35B-HERETIC 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 FoolDev/Janus-35B-HERETIC:Q4_K_M # Run inference directly in the terminal: llama cli -hf FoolDev/Janus-35B-HERETIC:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf FoolDev/Janus-35B-HERETIC:Q4_K_M # Run inference directly in the terminal: llama cli -hf FoolDev/Janus-35B-HERETIC:Q4_K_M
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 FoolDev/Janus-35B-HERETIC:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf FoolDev/Janus-35B-HERETIC:Q4_K_M
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 FoolDev/Janus-35B-HERETIC:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf FoolDev/Janus-35B-HERETIC:Q4_K_M
Use Docker
docker model run hf.co/FoolDev/Janus-35B-HERETIC:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use FoolDev/Janus-35B-HERETIC with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FoolDev/Janus-35B-HERETIC" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FoolDev/Janus-35B-HERETIC", "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/FoolDev/Janus-35B-HERETIC:Q4_K_M
- SGLang
How to use FoolDev/Janus-35B-HERETIC 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 "FoolDev/Janus-35B-HERETIC" \ --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": "FoolDev/Janus-35B-HERETIC", "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 "FoolDev/Janus-35B-HERETIC" \ --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": "FoolDev/Janus-35B-HERETIC", "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" } } ] } ] }' - Ollama
How to use FoolDev/Janus-35B-HERETIC with Ollama:
ollama run hf.co/FoolDev/Janus-35B-HERETIC:Q4_K_M
- Unsloth Studio
How to use FoolDev/Janus-35B-HERETIC with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for FoolDev/Janus-35B-HERETIC to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for FoolDev/Janus-35B-HERETIC to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for FoolDev/Janus-35B-HERETIC to start chatting
- Pi
How to use FoolDev/Janus-35B-HERETIC with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FoolDev/Janus-35B-HERETIC:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "FoolDev/Janus-35B-HERETIC:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use FoolDev/Janus-35B-HERETIC with Docker Model Runner:
docker model run hf.co/FoolDev/Janus-35B-HERETIC:Q4_K_M
- Lemonade
How to use FoolDev/Janus-35B-HERETIC with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FoolDev/Janus-35B-HERETIC:Q4_K_M
Run and chat with the model
lemonade run user.Janus-35B-HERETIC-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use FoolDev/Janus-35B-HERETIC with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FoolDev/Janus-35B-HERETIC:Q4_K_M
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 FoolDev/Janus-35B-HERETIC:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use FoolDev/Janus-35B-HERETIC with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FoolDev/Janus-35B-HERETIC:Q4_K_M
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 "FoolDev/Janus-35B-HERETIC:Q4_K_M" \ --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"
docs: fix hardware-table eval contradiction + card consistency touches
Browse filesFrom a vetted suggestion pass on the card:
- Known-limitations note claimed the hardware table is "estimates, not
measured," but the Z13 row records a measured 28.71 tok/s β reworded to
carve out the measured row (the real defect).
- examples/README.md Setup now states `cd examples` up front; its first
runnable command silently assumed that cwd (a fresh clone lands at root).
- Loader-table `Ollama 0.24` -> `0.24+`, matching the open-ended form used
everywhere else (the behavior holds for every version since).
- Added `reasoning` + `distillation` frontmatter tags (CITATION.cff already
lists both as keywords; the card is positioned reasoning-first + distilled).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- CHANGELOG.md +11 -0
- README.md +4 -2
- examples/README.md +2 -0
|
@@ -15,6 +15,9 @@ track the **tooling and documentation**, not the underlying base model.
|
|
| 15 |
verbatim; the vision client is skipped (it uses a deliberate image-specific
|
| 16 |
prompt). Catches an example silently drifting from the shipped prompt β the
|
| 17 |
gap that let the `llama_cpp_quickstart.py` prompt truncate (see Fixed).
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
### Changed (default sampling matched to the Fable teacher)
|
| 20 |
- **Default sampling raised to a Fable-matched profile** in `params` and the
|
|
@@ -26,6 +29,14 @@ track the **tooling and documentation**, not the underlying base model.
|
|
| 26 |
override.
|
| 27 |
|
| 28 |
### Fixed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
- **`scripts/load_bundle.sh` LFS-pointer size check is now portable.** The
|
| 30 |
bundle resolver probed file size with GNU-only `stat -c '%s'`, which errors on
|
| 31 |
macOS/BSD `stat` (that needs `-f%z`) β leaking a stderr line on an advertised
|
|
|
|
| 15 |
verbatim; the vision client is skipped (it uses a deliberate image-specific
|
| 16 |
prompt). Catches an example silently drifting from the shipped prompt β the
|
| 17 |
gap that let the `llama_cpp_quickstart.py` prompt truncate (see Fixed).
|
| 18 |
+
- **Frontmatter tags `reasoning` + `distillation`.** The card positions Janus
|
| 19 |
+
as reasoning-first and distilled (and `CITATION.cff` already lists both as
|
| 20 |
+
keywords), but neither was a searchable Hub tag β added both.
|
| 21 |
|
| 22 |
### Changed (default sampling matched to the Fable teacher)
|
| 23 |
- **Default sampling raised to a Fable-matched profile** in `params` and the
|
|
|
|
| 29 |
override.
|
| 30 |
|
| 31 |
### Fixed
|
| 32 |
+
- **Hardware-table eval disclaimer no longer self-contradicts.** "Known
|
| 33 |
+
limitations" said the table numbers are "estimates, not measured," yet the
|
| 34 |
+
Z13 row records a measured 28.71 tok/s β reworded to carve out that row.
|
| 35 |
+
- **`examples/README.md` establishes its working directory.** The Setup
|
| 36 |
+
section's first runnable command assumed a `cd examples` that was never
|
| 37 |
+
stated (a fresh clone lands at repo root); added the note.
|
| 38 |
+
- **Loader-table Ollama version reads `0.24+`.** The lone bare `Ollama 0.24`
|
| 39 |
+
cell now matches the open-ended `0.24+` used everywhere else.
|
| 40 |
- **`scripts/load_bundle.sh` LFS-pointer size check is now portable.** The
|
| 41 |
bundle resolver probed file size with GNU-only `stat -c '%s'`, which errors on
|
| 42 |
macOS/BSD `stat` (that needs `-f%z`) β leaking a stderr line on an advertised
|
|
@@ -42,6 +42,8 @@ tags:
|
|
| 42 |
- gguf
|
| 43 |
- heretic
|
| 44 |
- uncensored
|
|
|
|
|
|
|
| 45 |
library_name: transformers
|
| 46 |
pipeline_tag: image-text-to-text
|
| 47 |
---
|
|
@@ -248,7 +250,7 @@ The projector and other-quant text decoders live at
|
|
| 248 |
|---|---|---|---|
|
| 249 |
| **llama.cpp** (`llama-mtmd-cli`, `llama-server --mmproj`) | β
| β
| Reference path. Upstream has the `qwen35moe` arch entry. |
|
| 250 |
| **llama-cpp-python** | β
| β
| See `examples/llama_cpp_vision.py`. |
|
| 251 |
-
| **Ollama 0.24** | β
| β | Text inference works: Ollama's Go engine has the `qwen35` / `qwen35moe` arch entries. Vision (mmproj) is still broken: the C++ llama.cpp fallback that Ollama switches to when an mmproj is attached lacks those entries. `ollama create` accepts a dual-`FROM` (text + mmproj) and `ollama show` reports `vision` capability β but the **first inference request** fails with `error loading model architecture: unknown model architecture: 'qwen35moe'`, and once mmproj is attached this blocks text inference too. See [ollama/ollama#14575](https://github.com/ollama/ollama/issues/14575) (open β the earlier #15898 was closed as its duplicate, and the sync PR #15899 was closed unmerged). |
|
| 252 |
| **LM Studio** | β
| β
| Uses upstream llama.cpp directly. |
|
| 253 |
|
| 254 |
### Vision via llama.cpp
|
|
@@ -431,7 +433,7 @@ print(resp.choices[0].message.tool_calls)
|
|
| 431 |
- **Thinking traces can loop.** Like most reasoning-distilled models, Janus-35B occasionally gets stuck repeating itself inside `<think>` tags. Mitigations: lower temperature to 0.4-0.6, raise `repeat_penalty` to 1.08, or set a `<think>`-token budget cap if your loader supports it.
|
| 432 |
- **Large tool-call arguments can be dropped.** Ollama's JSON-in-XML tool format makes the model JSON-escape the entire arguments object inline; for a big/complex payload (e.g. a file's `content` in a `write_file` call) the model can fail to escape it, so the field arrives `undefined` and the call fails. Qwen's native `<function=β¦><parameter=β¦>` format (raw values, no escaping) was tested as a fix but parses unreliably through Ollama, so the template deliberately keeps JSON-in-XML. Mitigation: write large files in smaller pieces per call.
|
| 433 |
- **Uncensored base β not aligned with any specific safety policy.** This is a personal repackage of an open-weight base whose refusal behavior has been abliterated away (the llmfan46 Heretic base). There is no RLHF refusal layer; the model will attempt most requests, so downstream safety is entirely the operator's responsibility.
|
| 434 |
-
- **No formal evaluation in this card.**
|
| 435 |
|
| 436 |
## Related models
|
| 437 |
|
|
|
|
| 42 |
- gguf
|
| 43 |
- heretic
|
| 44 |
- uncensored
|
| 45 |
+
- reasoning
|
| 46 |
+
- distillation
|
| 47 |
library_name: transformers
|
| 48 |
pipeline_tag: image-text-to-text
|
| 49 |
---
|
|
|
|
| 250 |
|---|---|---|---|
|
| 251 |
| **llama.cpp** (`llama-mtmd-cli`, `llama-server --mmproj`) | β
| β
| Reference path. Upstream has the `qwen35moe` arch entry. |
|
| 252 |
| **llama-cpp-python** | β
| β
| See `examples/llama_cpp_vision.py`. |
|
| 253 |
+
| **Ollama 0.24+** | β
| β | Text inference works: Ollama's Go engine has the `qwen35` / `qwen35moe` arch entries. Vision (mmproj) is still broken: the C++ llama.cpp fallback that Ollama switches to when an mmproj is attached lacks those entries. `ollama create` accepts a dual-`FROM` (text + mmproj) and `ollama show` reports `vision` capability β but the **first inference request** fails with `error loading model architecture: unknown model architecture: 'qwen35moe'`, and once mmproj is attached this blocks text inference too. See [ollama/ollama#14575](https://github.com/ollama/ollama/issues/14575) (open β the earlier #15898 was closed as its duplicate, and the sync PR #15899 was closed unmerged). |
|
| 254 |
| **LM Studio** | β
| β
| Uses upstream llama.cpp directly. |
|
| 255 |
|
| 256 |
### Vision via llama.cpp
|
|
|
|
| 433 |
- **Thinking traces can loop.** Like most reasoning-distilled models, Janus-35B occasionally gets stuck repeating itself inside `<think>` tags. Mitigations: lower temperature to 0.4-0.6, raise `repeat_penalty` to 1.08, or set a `<think>`-token budget cap if your loader supports it.
|
| 434 |
- **Large tool-call arguments can be dropped.** Ollama's JSON-in-XML tool format makes the model JSON-escape the entire arguments object inline; for a big/complex payload (e.g. a file's `content` in a `write_file` call) the model can fail to escape it, so the field arrives `undefined` and the call fails. Qwen's native `<function=β¦><parameter=β¦>` format (raw values, no escaping) was tested as a fix but parses unreliably through Ollama, so the template deliberately keeps JSON-in-XML. Mitigation: write large files in smaller pieces per call.
|
| 435 |
- **Uncensored base β not aligned with any specific safety policy.** This is a personal repackage of an open-weight base whose refusal behavior has been abliterated away (the llmfan46 Heretic base). There is no RLHF refusal layer; the model will attempt most requests, so downstream safety is entirely the operator's responsibility.
|
| 436 |
+
- **No formal evaluation in this card.** Most numbers in the hardware table are estimates; the Z13 row (28.71 tok/s at Q4_K_M) is measured. If you produce real benchmarks (MMLU, HumanEval, etc.) and want them included, file a PR.
|
| 437 |
|
| 438 |
## Related models
|
| 439 |
|
|
@@ -18,6 +18,8 @@ so expect warmer sampling from the Ollama path.
|
|
| 18 |
|
| 19 |
## Setup
|
| 20 |
|
|
|
|
|
|
|
| 21 |
### Ollama
|
| 22 |
|
| 23 |
Pull straight from HF (gets the bundled Q4_K_M GGUF + this repo's
|
|
|
|
| 18 |
|
| 19 |
## Setup
|
| 20 |
|
| 21 |
+
> These commands run from this `examples/` directory β `cd examples` first (the main README clones into the repo root).
|
| 22 |
+
|
| 23 |
### Ollama
|
| 24 |
|
| 25 |
Pull straight from HF (gets the bundled Q4_K_M GGUF + this repo's
|