Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
text-generation-inference
unsloth
conversational
Instructions to use CrowdMind/Fred-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CrowdMind/Fred-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="CrowdMind/Fred-9B") 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("CrowdMind/Fred-9B") model = AutoModelForMultimodalLM.from_pretrained("CrowdMind/Fred-9B", 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 CrowdMind/Fred-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CrowdMind/Fred-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CrowdMind/Fred-9B", "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/CrowdMind/Fred-9B
- SGLang
How to use CrowdMind/Fred-9B 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 "CrowdMind/Fred-9B" \ --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": "CrowdMind/Fred-9B", "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 "CrowdMind/Fred-9B" \ --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": "CrowdMind/Fred-9B", "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 CrowdMind/Fred-9B with Docker Model Runner:
docker model run hf.co/CrowdMind/Fred-9B
|
Download README.md from CrowdMind/Fred-9B: direct link, hf CLI and curl.
- Browser
- Download file 6.2 kB
-
https://huggingface.co/CrowdMind/Fred-9B/resolve/main/README.md
- Command line
-
hf download hf://CrowdMind/Fred-9B/README.md
-
curl -L -o README.md https://huggingface.co/CrowdMind/Fred-9B/resolve/main/README.md
6.2 kB
| base_model: Qwen/Qwen3.5-9B | |
| tags: | |
| - text-generation-inference | |
| - transformers | |
| - unsloth | |
| - qwen3_5 | |
| license: apache-2.0 | |
| language: | |
| - en | |
|  | |
| # Fred-9B | |
| **Fred-9B** is a fine-tuned 9B-parameter language model based on **Qwen | |
| 3.5 9B** and finetunned with this dataset, https://huggingface.co/datasets/CrowdMind/caveman-fred. | |
| Fred-9B was trained with **LoRA/QLoRA-style parameter-efficient | |
| fine-tuning** and is intended as an experimental conversational and | |
| reasoning model. | |
| > **Note:** Fred-9B is a fine-tune of Qwen 3.5 9B, not a model trained | |
| > from scratch. | |
| ## Model Details | |
| Property Value | |
| ------------------------ ----------------- | |
| Model name **Fred-9B** | |
| Base model **Qwen 3.5 9B** | |
| Fine-tuning method **LoRA** | |
| LoRA rank 128 | |
| LoRA alpha 256 | |
| LoRA dropout 0.05 | |
| Batch size 4 | |
| Context length 2,048 tokens | |
| Learning rate 2e-4 | |
| Optimizer AdamW 8-bit | |
| Warmup steps 30 | |
| Maximum training steps 300 | |
| Training tokens \~3.21M | |
| Final training loss 0.0833 | |
| Final gradient norm 0.470 | |
| Training time \~1h 33m | |
| ## Training | |
| Fred-9B was fine-tuned for **300 steps**. The training run used a | |
| 2,048-token context length and a batch size of 4. | |
| The learning-rate schedule used a short warmup followed by decay across | |
| the training run. | |
| ### Final Training Metrics | |
| - **Training loss:** `0.0833` | |
| - **Learning rate:** `7.41e-7` | |
| - **Gradient norm:** `0.470` | |
| - **Tokens processed:** `3,214,912` | |
| - **Steps:** `300 / 300` | |
| - **Training time:** `1h 32m 45s` | |
| No evaluation dataset was configured for this training run, so an | |
| evaluation loss was not recorded. | |
| ## Example Behavior | |
| One of the training checkpoints was tested with simple arithmetic and | |
| order-of-operations questions. | |
| ### Example 1 | |
| **Prompt** | |
| ``` text | |
| Please solve this for me i need help: 2+1*3(1+1)+3 | |
| ``` | |
| **Fred-9B** | |
| ``` text | |
| The final answer is 11. | |
| ``` | |
| The model correctly handles the parentheses and multiplication before | |
| addition: | |
| ``` text | |
| 1 + 1 = 2 | |
| 3 × 2 = 6 | |
| 2 + 6 + 3 = 11 | |
| ``` | |
|  | |
| ### Example 2 | |
| **Prompt** | |
| ``` text | |
| Please solve this for me i need help: 3+1+1*4(1+1)+3*1 | |
| ``` | |
| **Fred-9B** | |
| ``` text | |
| The final answer is 15. | |
| ``` | |
| The model breaks the expression down using standard order of operations | |
| and reaches the correct result. | |
|  | |
| ## Intended Use | |
| Fred-9B is intended for: | |
| - Conversational AI experiments | |
| - Local LLM experimentation | |
| - Coding and reasoning experiments | |
| - Mathematical/problem-solving prompts | |
| - Testing fine-tuning workflows | |
| - Personal/local AI assistants | |
| Because Fred-9B is an experimental fine-tune, its behavior may vary | |
| substantially depending on the prompt and task. | |
| ## Limitations | |
| Fred-9B has several important limitations: | |
| - The model has only been fine-tuned for a relatively small number of | |
| steps. | |
| - The reported run did not use an evaluation dataset. | |
| - The examples shown above are not a comprehensive benchmark. | |
| - Correct answers on simple arithmetic do not guarantee reliable | |
| mathematical reasoning. | |
| - The model may hallucinate or produce incorrect information. | |
| - Fine-tuning can alter some of the capabilities and behaviors of the | |
| original Qwen model. | |
| - Performance will depend on the inference engine, quantization, | |
| prompt format, and hardware. | |
| For serious evaluation, use a held-out evaluation dataset and | |
| established benchmarks rather than relying only on training loss. | |
| ## Recommended Evaluation | |
| For future versions of Fred, consider evaluating: | |
| - General instruction following | |
| - Mathematical reasoning | |
| - Coding | |
| - Knowledge/retrieval | |
| - Multi-step reasoning | |
| - Hallucination resistance | |
| - Long-context behavior | |
| - Conversational consistency | |
| A separate validation/evaluation dataset should be configured for future | |
| training runs so that training loss can be compared against evaluation | |
| loss. | |
| ## Running Fred-9B | |
| Fred-9B can be used with an inference stack that supports the model's | |
| exported format. | |
| If the model is exported to GGUF, it can be used with compatible local | |
| inference tools such as `llama.cpp`-based applications. | |
| Example concept: | |
| ``` bash | |
| # Example only — replace with the actual exported model filename | |
| ./llama-cli -m Fred-9B.gguf | |
| ``` | |
| The exact command depends on the exported model format and inference | |
| framework. | |
| ## Quantization | |
| For local deployment, quantized versions can significantly reduce memory | |
| requirements. | |
| Possible variants include: | |
| - 4-bit | |
| - 5-bit | |
| - 6-bit | |
| - 8-bit | |
| - Full/half precision | |
| The best choice depends on available VRAM/RAM and the desired balance | |
| between speed, memory usage, and model quality. | |
| ## Training Configuration | |
| The training run used approximately the following configuration: | |
| ``` yaml | |
| model: Qwen 3.5 9B | |
| method: LoRA | |
| training: | |
| batch_size: 4 | |
| learning_rate: 0.0002 | |
| optimizer: AdamW 8-bit | |
| context_length: 2048 | |
| warmup_steps: 30 | |
| max_steps: 300 | |
| lora: | |
| rank: 128 | |
| alpha: 256 | |
| dropout: 0.05 | |
| variant: lora | |
| ``` | |
|  | |
| ## Acknowledgements | |
| Fred-9B is based on **Qwen 3.5 9B**. | |
| All original model licensing, attribution, usage restrictions, and terms | |
| from the Qwen base model remain important when using or redistributing | |
| Fred-9B. Check the official Qwen model license and documentation before | |
| publishing or deploying the model. | |
| ## Project Status | |
| **Experimental --- first training run** | |
| Fred-9B is currently an experimental fine-tune. Future versions can | |
| improve the dataset, evaluation process, training duration, instruction | |
| formatting, and inference quality. | |
| ------------------------------------------------------------------------ | |
| **Fred-9B** --- a personal 9B fine-tune built on Qwen 3.5 9B. | |