Instructions to use morriszjm/AnyJev-Tacitus-31B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use morriszjm/AnyJev-Tacitus-31B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="morriszjm/AnyJev-Tacitus-31B") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("morriszjm/AnyJev-Tacitus-31B") model = AutoModelForMultimodalLM.from_pretrained("morriszjm/AnyJev-Tacitus-31B", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use morriszjm/AnyJev-Tacitus-31B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "morriszjm/AnyJev-Tacitus-31B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "morriszjm/AnyJev-Tacitus-31B", "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/morriszjm/AnyJev-Tacitus-31B
- SGLang
How to use morriszjm/AnyJev-Tacitus-31B 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 "morriszjm/AnyJev-Tacitus-31B" \ --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": "morriszjm/AnyJev-Tacitus-31B", "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 "morriszjm/AnyJev-Tacitus-31B" \ --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": "morriszjm/AnyJev-Tacitus-31B", "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 morriszjm/AnyJev-Tacitus-31B with Docker Model Runner:
docker model run hf.co/morriszjm/AnyJev-Tacitus-31B
AnyJev Tacitus 31B
AnyJev Tacitus is a decision model fine-tuned from google/gemma-4-31B-it. It reads every typed decision from a single prefill, as a probability over the options, without generating tokens. Its training and its inference were designed together; the serving side (AnyJev's readout and a small vLLM plugin) is in MorrisZJ/anyjev-tacitus, and the method will be described in a forthcoming paper.
Decision Index 0.3, public suite
| public index | 65.52 (raw 73.50, breadth 64.80) |
| areas | knowledge 52.8 Β· language 70.3 Β· retrieval 67.5 Β· tools 81.3 Β· arts 53.2 |
| requests | 140,178 of 140,178 scoreable, all answered, none unsupported, no errors |
| results | morriszjm/decision-index-results, runs/anyjev-tacitus-31b-v1 |
How to use it
The model is meant to be read through the engine and the vLLM plugin in MorrisZJ/anyjev-tacitus, not prompted as a chat model:
git clone https://github.com/MorrisZJ/anyjev-tacitus && cd anyjev-tacitus
pip install -r requirements.txt && pip install ./serving
bash serve.sh # vLLM 0.29.0, one GPU, FP8 at load, port 8000
Each prompt carries two bidirectional token ranges (the state, and the question with its options) that the plugin applies on the full-attention layers; the engine computes them. Read without them, as a plain causal model, the probabilities are not the ones the model was built to give.
Details
- Weights: bf16, 13 safetensors shards, the base model's tokenizer and chat template.
- Serving: FP8 quantization at load (
--quantization fp8), one 94β96 GB GPU at a 32,768-token window. - Decisions: a choice among up to 260 options, or yes/no; the answer is the next-token distribution restricted to the option labels. Text only.
Citation
A paper describing the method is in preparation.
- Downloads last month
- 348