Image-Text-to-Text
Transformers
Safetensors
mistral3
mistral-3.5
multimodal
vision
fp16
heretic
conversational
Instructions to use darkc0de/XORTRON-NXTXPRTXXL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use darkc0de/XORTRON-NXTXPRTXXL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="darkc0de/XORTRON-NXTXPRTXXL") 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 AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("darkc0de/XORTRON-NXTXPRTXXL") model = AutoModelForMultimodalLM.from_pretrained("darkc0de/XORTRON-NXTXPRTXXL", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use darkc0de/XORTRON-NXTXPRTXXL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "darkc0de/XORTRON-NXTXPRTXXL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "darkc0de/XORTRON-NXTXPRTXXL", "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/darkc0de/XORTRON-NXTXPRTXXL
- SGLang
How to use darkc0de/XORTRON-NXTXPRTXXL 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 "darkc0de/XORTRON-NXTXPRTXXL" \ --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": "darkc0de/XORTRON-NXTXPRTXXL", "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 "darkc0de/XORTRON-NXTXPRTXXL" \ --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": "darkc0de/XORTRON-NXTXPRTXXL", "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 darkc0de/XORTRON-NXTXPRTXXL with Docker Model Runner:
docker model run hf.co/darkc0de/XORTRON-NXTXPRTXXL
Upload reproduce/README.md with huggingface_hub
Browse files- reproduce/README.md +67 -0
reproduce/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Reproduction guide
|
| 2 |
+
|
| 3 |
+
This directory contains the necessary information and assets to reproduce the results obtained during this Heretic run.
|
| 4 |
+
|
| 5 |
+
## Models
|
| 6 |
+
|
| 7 |
+
- **Base model:** [Darkhn/Mistral-Medium-3.5-128B-BF16-Text-Only](https://huggingface.co/Darkhn/Mistral-Medium-3.5-128B-BF16-Text-Only) (Commit: [`b549ca0`](https://huggingface.co/Darkhn/Mistral-Medium-3.5-128B-BF16-Text-Only/commit/b549ca0a1b1414f5d3f2e6baddc0c35e8ecc6a74))
|
| 8 |
+
|
| 9 |
+
## Datasets
|
| 10 |
+
|
| 11 |
+
- **Good prompts:** [mlabonne/harmless_alpaca](https://huggingface.co/datasets/mlabonne/harmless_alpaca) (Commit: [`02c6a92`](https://huggingface.co/datasets/mlabonne/harmless_alpaca/commit/02c6a92cfcf11bb0c387334f8146d149d65b587f))
|
| 12 |
+
- **Bad prompts:** [mlabonne/harmful_behaviors](https://huggingface.co/datasets/mlabonne/harmful_behaviors) (Commit: [`01cead0`](https://huggingface.co/datasets/mlabonne/harmful_behaviors/commit/01cead01398926d81f7c52bdb790ee8cf77ebba7))
|
| 13 |
+
- **Good evaluation prompts:** [mlabonne/harmless_alpaca](https://huggingface.co/datasets/mlabonne/harmless_alpaca) (Commit: [`02c6a92`](https://huggingface.co/datasets/mlabonne/harmless_alpaca/commit/02c6a92cfcf11bb0c387334f8146d149d65b587f))
|
| 14 |
+
- **Bad evaluation prompts:** [mlabonne/harmful_behaviors](https://huggingface.co/datasets/mlabonne/harmful_behaviors) (Commit: [`01cead0`](https://huggingface.co/datasets/mlabonne/harmful_behaviors/commit/01cead01398926d81f7c52bdb790ee8cf77ebba7))
|
| 15 |
+
|
| 16 |
+
## Selected trial
|
| 17 |
+
|
| 18 |
+
- **Trial number:** 129
|
| 19 |
+
- **KL divergence:** 0.032947
|
| 20 |
+
- **Refusals:** 8/100
|
| 21 |
+
|
| 22 |
+
## System
|
| 23 |
+
|
| 24 |
+
- **Python:** 3.12.3 (CPython, GCC 13.3.0) [System]
|
| 25 |
+
- **Operating system:** Linux-6.8.0-100-generic-x86_64-with-glibc2.39 (x86_64)
|
| 26 |
+
- **CPU:** AMD EPYC 9555 64-Core Processor
|
| 27 |
+
|
| 28 |
+
### Accelerators
|
| 29 |
+
|
| 30 |
+
- **CUDA:** Detected 4 device(s) (379.88 GB total VRAM)
|
| 31 |
+
- **CUDA Version:** 12.8
|
| 32 |
+
- **Driver Version:** 580.126.09
|
| 33 |
+
- **Devices:**
|
| 34 |
+
- **CUDA 0:** NVIDIA RTX PRO 6000 Blackwell Server Edition (94.97 GB)
|
| 35 |
+
- **CUDA 1:** NVIDIA RTX PRO 6000 Blackwell Server Edition (94.97 GB)
|
| 36 |
+
- **CUDA 2:** NVIDIA RTX PRO 6000 Blackwell Server Edition (94.97 GB)
|
| 37 |
+
- **CUDA 3:** NVIDIA RTX PRO 6000 Blackwell Server Edition (94.97 GB)
|
| 38 |
+
|
| 39 |
+
## Environment
|
| 40 |
+
|
| 41 |
+
- **Heretic:** v1.3.0 (Origin: PyPI)
|
| 42 |
+
- **PyTorch:** 2.8.0+cu128
|
| 43 |
+
- **Other dependencies:** See [`requirements.txt`](requirements.txt).
|
| 44 |
+
|
| 45 |
+
## Contents of this directory
|
| 46 |
+
|
| 47 |
+
- [`requirements.txt`](requirements.txt): The exact versions of all Python packages.
|
| 48 |
+
- [`config.toml`](config.toml): The exact configuration used, including the RNG seed.
|
| 49 |
+
- [`Darkhn--Mistral-Medium-3--5-128B-BF16-Text-Only.jsonl`](Darkhn--Mistral-Medium-3--5-128B-BF16-Text-Only.jsonl): The Optuna study journal containing the history of all trials.
|
| 50 |
+
- [`SHA256SUMS`](SHA256SUMS): Cryptographic hashes for all weight files.
|
| 51 |
+
- [`reproduce.json`](reproduce.json): A machine-readable file containing all reproducibility information.
|
| 52 |
+
|
| 53 |
+
## How to reproduce
|
| 54 |
+
|
| 55 |
+
1. Ensure your system matches the specifications in the **System** section above. Exact reproducibility is only guaranteed if all aspects of your system are identical to the one the model was originally generated on.
|
| 56 |
+
1. Install the exact version of Heretic indicated in the **Environment** section above, from its original source.
|
| 57 |
+
1. Install the packages listed in `requirements.txt`: `pip install -r requirements.txt`
|
| 58 |
+
1. Install the correct version of PyTorch: `pip install torch==2.8.0+cu128 --index-url https://download.pytorch.org/whl/cu128`
|
| 59 |
+
1. Place the provided `config.toml` in your working directory.
|
| 60 |
+
1. Run Heretic without any additional arguments: `heretic`
|
| 61 |
+
1. Wait for the run to finish, then select trial **129** and export the model.
|
| 62 |
+
1. Verify that the weight files have been exactly reproduced by comparing their SHA-256 hashes against those in `SHA256SUMS`: `sha256sum -c SHA256SUMS` (or look at the hashes online if you uploaded to Hugging Face)
|
| 63 |
+
|
| 64 |
+
> [!TIP]
|
| 65 |
+
> To use the included Optuna study journal `Darkhn--Mistral-Medium-3--5-128B-BF16-Text-Only.jsonl`, place it in the checkpoints directory (usually `checkpoints/`) before running Heretic.
|
| 66 |
+
>
|
| 67 |
+
> This allows you to export other models from the Pareto front, or to run additional trials without having to re-run the stored trials.
|