Instructions to use Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX
Built with Llama.
An MLX affine 6-bit, group-size 64 conversion of RavichandranJ/Dolphin3-Cyber-8B-GGUF. This release uses the publisher's floating-point F16 GGUF as its weight source. It is not a conversion of a low-bit GGUF quant.
No additional fine-tuning, abliteration, or behavior editing was performed for this release. The cyber fine-tune and inherited behavior belong to the source model. The two weight shards total approximately 6.08 GiB.
Usage
Install MLX-LM on an Apple Silicon Mac. The local validation environment used MLX 0.32.2, MLX-LM 0.31.3, and Transformers 5.14.1.
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler
model, tokenizer = load("Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX")
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "Explain how to preserve incident-response evidence."}],
tokenize=True,
add_generation_prompt=True,
)
response = generate(
model, tokenizer, prompt=prompt,
max_tokens=256,
sampler=make_sampler(temp=0),
prefill_step_size=512,
)
print(response)
Use the included ChatML template. It matches the publisher's GGUF metadata and adapter tokenizer files. Do not replace it with the Llama-header example shown in the original model card.
Use a conservative 2,048-token total context budget, including prompt and generated tokens. The architecture config retains its original 131,072 positional limit, but that is not a validated quality claim for this fine-tune. Native MTP and a Dolphin-specific DFlash pairing are not supplied or qualified.
Validation status and limitations
This is the retained 6-bit candidate from local float-parent versus quantized-model checks. Structural loading, source hashes, tokenizer token-ID mapping, and chat-template identity were checked. The GGUF layout adapter passed a small exact-logit fixture before conversion. File identities are recorded in integrity-manifest.json.
The local checks are not a comprehensive benchmark or a mission-critical readiness certification. Broader local workflow probes exposed failures in structured-output compliance, tool arguments, minimum selection, and threshold decisions even at 6-bit. JSON/schema-constrained decoding improved formatting, but did not establish semantic correctness. This repository does not enable constrained decoding automatically.
Validate the model on representative tasks before operational use. No formal public Shiftedx Bench score or destination-hardware speed claim is made. The intended M4 Pro 24GB deployment has not been benchmarked; local development checks ran on an M4 Max with 64 GiB unified memory. See runtime-settings.json for the tested runtime contract.
Pinned provenance
- Weight source: publisher revision 145d66f096c8a99aad63be19ada1fbc46d3230bd,
Dolphin3.0-Llama3.1-8B-abliterated.F16.gguf. - Source SHA-256:
fa9c07ec89a8ed2f8a4ace6bda4f50349be3650640766cc312239cf3a1549dc6. - Tokenizer/template source: publisher LoRA revision edeb37d0b7062cc4978d458ea1c88b5a4896bd11. All 128,258 token IDs and the embedded GGUF template matched.
- Declared upstream base:
huihui-ai/Dolphin3.0-Llama3.1-8B-abliterated. That repository was unavailable during conversion; its weights were not substituted from an unverified mirror.
License and attribution
This model inherits the Llama 3.1 Community License and Acceptable Use Policy. See NOTICE. Credit to Meta, the Dolphin contributors, huihui-ai, and RavichandranJ for the model lineage and cybersecurity fine-tune; Shiftedx performed this MLX quantization.
- Downloads last month
- 342
6-bit
Model tree for Shiftedx/Llama-3.1-Dolphin3-Cyber-8B-6bit-MLX
Base model
RavichandranJ/Dolphin3-Cyber-8B-GGUF