π Model Description
license: apache-2.0
DeepMedix-R1 GGUF Models
Model Generation Details
This model was generated using llama.cpp at commit fb15d649
.
Quantization Beyond the IMatrix
I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides.
In my testing, standard IMatrix quantization underperforms at lower bit depths, especially with Mixture of Experts (MoE) models. To address this, I'm using the --tensor-type
option in llama.cpp
to manually "bump" important layers to higher precision. You can see the implementation here:
π Layer bumping with llama.cpp
While this does increase model file size, it significantly improves precision for a given quantization level.
I'd love your feedbackβhave you tried this? How does it perform for you?
Click here to get info on choosing the right GGUF model format
Model Usage:
~~~
from transformers import Qwen25VLForConditionalGeneration, AutoTokenizer, AutoProcessor
from qwenvlutils import processvisioninfo
model = Qwen25VLForConditionalGeneration.from_pretrained(
model_path,
torch_dtype=torch.bfloat16,
attnimplementation="flashattention_2",
device_map="auto",
)
processor = AutoProcessor.frompretrained(modelpath, max_pixels=262144)
reasonprompt = r"You FIRST think about the reasoning process as an internal monologue and then provide the final answer. The reasoning process MUST BE enclosed within
def get_label(images, content1):
content_list = []
for image_url in images:
content_list.append({
"type": "image",
"image": image_url,
})
if mode == 'think':
content_list.append({"type": "text",
"text": content1 + '\n' + reason_prompt + '\n'})
else:
content_list.append({"type": "text",
"text": content1})
messages = [
{
"role": "user",
"content": content_list
}
]
# Preparation for inference
text = processor.applychattemplate(
messages, tokenize=False, addgenerationprompt=True
)
# print(text)
imageinputs, videoinputs = processvisioninfo(messages)
inputs = processor(
text=[text],
images=image_inputs,
videos=video_inputs,
padding=True,
return_tensors="pt",
)
inputs = inputs.to("cuda")
# Inference: Generation of the output
generatedids = model.generate(inputs, maxnewtokens=4096, dosample=True, temperature=0.6)
generatedidstrimmed = [
outids[len(inids):] for inids, outids in zip(inputs.inputids, generatedids)
]
outputtext = processor.batchdecode(
generatedidstrimmed, skipspecialtokens=True, cleanuptokenization_spaces=False
)
# print(output_text)
# print(output_text[0])
return output_text[0]
~~~
π If you find these models useful
Help me test my AI-Powered Quantum Network Monitor Assistant with quantum-ready security checks:
The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : Source Code Quantum Network Monitor. You will also find the code I use to quantize the models if you want to do it yourself GGUFModelBuilder
π¬ How to test:
Choose an AI assistant type:
- TurboLLM
(GPT-4.1-mini)
- HugLLM
(Hugginface Open-source models)
- TestLLM
(Experimental CPU-only)
What Iβm Testing
Iβm pushing the limits of small open-source models for AI network monitoring, specifically:- Function calling against live network services
- How small can a model go while still handling:
π‘ TestLLM β Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
- β Zero-configuration setup
- β³ 30s load time (slow inference but no API costs) . No token limited as the cost is low.
- π§ Help wanted! If youβre into edge-device AI, letβs collaborate!
Other Assistants
π’ TurboLLM β Uses gpt-4.1-mini :- It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
- Create custom cmd processors to run .net code on Quantum Network Monitor Agents
- Real-time network diagnostics and monitoring
- Security Audits
- Penetration testing (Nmap/Metasploit)
π΅ HugLLM β Latest Open-source models:
- π Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
π‘ Example commands you could test:
"Give me info on my websites SSL certificate"
"Check if my server is using quantum safe encyption for communication"
"Run a comprehensive security audit on my server"
- '"Create a cmd processor to .. (what ever you want)" Note you need to install a Quantum Network Monitor Agent to run the .net code on. This is a very flexible and powerful feature. Use with caution!
Final Word
I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAIβall out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is open source. Feel free to use whatever you find helpful.
If you appreciate the work, please consider buying me a coffee β. Your support helps cover service costs and allows me to raise token limits for everyone.
I'm also open to job opportunities or sponsorship.
Thank you! π
π GGUF File List
π Filename | π¦ Size | β‘ Download |
---|---|---|
DeepMedix-R1-bf16.gguf
LFS
FP16
|
14.19 GB | Download |
DeepMedix-R1-bf16_q8_0.gguf
LFS
Q8
|
10.51 GB | Download |
DeepMedix-R1-f16_q8_0.gguf
LFS
Q8
|
10.51 GB | Download |
DeepMedix-R1-imatrix.gguf
LFS
|
4.35 MB | Download |
DeepMedix-R1-iq1_m.gguf
LFS
|
2.4 GB | Download |
DeepMedix-R1-iq1_s.gguf
LFS
|
2.12 GB | Download |
DeepMedix-R1-iq2_m.gguf
LFS
Q2
|
2.83 GB | Download |
DeepMedix-R1-iq2_s.gguf
LFS
Q2
|
2.72 GB | Download |
DeepMedix-R1-iq2_xs.gguf
LFS
Q2
|
2.64 GB | Download |
DeepMedix-R1-iq2_xxs.gguf
LFS
Q2
|
2.47 GB | Download |
DeepMedix-R1-iq3_m.gguf
LFS
Q3
|
3.65 GB | Download |
DeepMedix-R1-iq3_xs.gguf
LFS
Q3
|
3.35 GB | Download |
DeepMedix-R1-iq3_xxs.gguf
LFS
Q3
|
3.28 GB | Download |
DeepMedix-R1-iq4_nl.gguf
LFS
Q4
|
4 GB | Download |
DeepMedix-R1-iq4_xs.gguf
LFS
Q4
|
4.08 GB | Download |
DeepMedix-R1-q2_k_m.gguf
LFS
Q2
|
2.91 GB | Download |
DeepMedix-R1-q2_k_s.gguf
LFS
Q2
|
2.78 GB | Download |
DeepMedix-R1-q3_k_m.gguf
LFS
Q3
|
3.73 GB | Download |
DeepMedix-R1-q3_k_s.gguf
LFS
Q3
|
3.59 GB | Download |
DeepMedix-R1-q4_0.gguf
Recommended
LFS
Q4
|
4.5 GB | Download |
DeepMedix-R1-q4_1.gguf
LFS
Q4
|
4.5 GB | Download |
DeepMedix-R1-q4_k_m.gguf
LFS
Q4
|
4.7 GB | Download |
DeepMedix-R1-q4_k_s.gguf
LFS
Q4
|
4.32 GB | Download |
DeepMedix-R1-q5_0.gguf
LFS
Q5
|
5.26 GB | Download |
DeepMedix-R1-q5_1.gguf
LFS
Q5
|
5.64 GB | Download |
DeepMedix-R1-q5_k_m.gguf
LFS
Q5
|
5.39 GB | Download |
DeepMedix-R1-q6_k_m.gguf
LFS
Q6
|
6.07 GB | Download |
DeepMedix-R1-q8_0.gguf
LFS
Q8
|
7.54 GB | Download |