Image-Text-to-Text
Transformers
Safetensors
qwen3_5
unsloth
GAIN Training
COLD-FUSION
finetune
conversational
Instructions to use DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1") 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("DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1") model = AutoModelForMultimodalLM.from_pretrained("DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1", 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1", "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/DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1
- SGLang
How to use DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1 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 "DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1" \ --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": "DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1", "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 "DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1" \ --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": "DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1", "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" } } ] } ] }' - Unsloth Desktop
- Docker Model Runner
How to use DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1 with Docker Model Runner:
docker model run hf.co/DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1
Update README.md
Browse files
README.md
CHANGED
|
@@ -66,7 +66,7 @@ and "Grand Intelligence" (9 stages)) versions and the newest (soon to be release
|
|
| 66 |
- GGUF repo(s).
|
| 67 |
- Release of source.
|
| 68 |
|
| 69 |
-
<B>Prelim Testing Results (training #1, CP #1):</b>
|
| 70 |
|
| 71 |
Cold Fusion GENERATION(S) from TESTING (quant) below.
|
| 72 |
|
|
@@ -77,11 +77,24 @@ Cold Fusion GENERATION(S) from TESTING (quant) below.
|
|
| 77 |
- Stable. No issues. No looping.
|
| 78 |
- PPL dropped vs BASE Qwen3.8 27B (indicator of COLD FUSION training; normal training: PPL stays the same/rises)
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
NOTES:
|
| 81 |
- Tested both Qwen 3.8-27B and trained version in Q4KS, non imatrix, same settings, "max thinking mode" (default)
|
| 82 |
- 3 generations each for both models, same prompt to assess function.
|
| 83 |
- Thinking block/output is assessed in terms of function and quality - especially detail level, and language.
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
---
|
| 86 |
|
| 87 |
<h2>BENCHMARKS by Nightmedia</h2>
|
|
|
|
| 66 |
- GGUF repo(s).
|
| 67 |
- Release of source.
|
| 68 |
|
| 69 |
+
<B>Prelim Testing Results (training #1, CP #1) // "1B":</b>
|
| 70 |
|
| 71 |
Cold Fusion GENERATION(S) from TESTING (quant) below.
|
| 72 |
|
|
|
|
| 77 |
- Stable. No issues. No looping.
|
| 78 |
- PPL dropped vs BASE Qwen3.8 27B (indicator of COLD FUSION training; normal training: PPL stays the same/rises)
|
| 79 |
|
| 80 |
+
1B:
|
| 81 |
+
|
| 82 |
+
- In progress, address/test oddball jinja injection of "system prompt" due to "xhigh" settings.
|
| 83 |
+
- "1" works great, see if "1B" works better.
|
| 84 |
+
|
| 85 |
NOTES:
|
| 86 |
- Tested both Qwen 3.8-27B and trained version in Q4KS, non imatrix, same settings, "max thinking mode" (default)
|
| 87 |
- 3 generations each for both models, same prompt to assess function.
|
| 88 |
- Thinking block/output is assessed in terms of function and quality - especially detail level, and language.
|
| 89 |
|
| 90 |
+
<B>Prelim Testing Results (training #2B, CP #1):</b>
|
| 91 |
+
|
| 92 |
+
- Adjustments to jinja to address system prompt injection (xhigh) affecting training.
|
| 93 |
+
- Reasoning : Full retention of detail, thinking/output 1/3 to 1/2 normal Qwen size.
|
| 94 |
+
- Reasoning is clearer, well laid out, and little to no "hesitations"
|
| 95 |
+
|
| 96 |
+
More to come.
|
| 97 |
+
|
| 98 |
---
|
| 99 |
|
| 100 |
<h2>BENCHMARKS by Nightmedia</h2>
|