Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
unsloth
roleplay
qwen
qwen-3.5
conversational
Instructions to use Nubinu/Qwen3.5-4B-MiniFantasy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nubinu/Qwen3.5-4B-MiniFantasy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Nubinu/Qwen3.5-4B-MiniFantasy") 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, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("Nubinu/Qwen3.5-4B-MiniFantasy") model = AutoModelForImageTextToText.from_pretrained("Nubinu/Qwen3.5-4B-MiniFantasy") 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
- vLLM
How to use Nubinu/Qwen3.5-4B-MiniFantasy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nubinu/Qwen3.5-4B-MiniFantasy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nubinu/Qwen3.5-4B-MiniFantasy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Nubinu/Qwen3.5-4B-MiniFantasy
- SGLang
How to use Nubinu/Qwen3.5-4B-MiniFantasy 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 "Nubinu/Qwen3.5-4B-MiniFantasy" \ --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": "Nubinu/Qwen3.5-4B-MiniFantasy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Nubinu/Qwen3.5-4B-MiniFantasy" \ --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": "Nubinu/Qwen3.5-4B-MiniFantasy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use Nubinu/Qwen3.5-4B-MiniFantasy with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Nubinu/Qwen3.5-4B-MiniFantasy to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Nubinu/Qwen3.5-4B-MiniFantasy to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Nubinu/Qwen3.5-4B-MiniFantasy to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Nubinu/Qwen3.5-4B-MiniFantasy", max_seq_length=2048, ) - Docker Model Runner
How to use Nubinu/Qwen3.5-4B-MiniFantasy with Docker Model Runner:
docker model run hf.co/Nubinu/Qwen3.5-4B-MiniFantasy
Upload base_test_sample_geechan.json
Browse files- base_test_sample_geechan.json +123 -0
base_test_sample_geechan.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"temp": 1,
|
| 3 |
+
"temperature_last": true,
|
| 4 |
+
"top_p": 1,
|
| 5 |
+
"top_k": 200,
|
| 6 |
+
"top_a": 0,
|
| 7 |
+
"tfs": 1,
|
| 8 |
+
"epsilon_cutoff": 0,
|
| 9 |
+
"eta_cutoff": 0,
|
| 10 |
+
"typical_p": 1,
|
| 11 |
+
"min_p": 0.02,
|
| 12 |
+
"rep_pen": 1,
|
| 13 |
+
"rep_pen_range": 0,
|
| 14 |
+
"rep_pen_decay": 0,
|
| 15 |
+
"rep_pen_slope": 1,
|
| 16 |
+
"no_repeat_ngram_size": 0,
|
| 17 |
+
"penalty_alpha": 0,
|
| 18 |
+
"num_beams": 1,
|
| 19 |
+
"length_penalty": 1,
|
| 20 |
+
"min_length": 0,
|
| 21 |
+
"encoder_rep_pen": 1,
|
| 22 |
+
"freq_pen": 0,
|
| 23 |
+
"presence_pen": 0,
|
| 24 |
+
"skew": 0,
|
| 25 |
+
"do_sample": true,
|
| 26 |
+
"early_stopping": false,
|
| 27 |
+
"dynatemp": false,
|
| 28 |
+
"min_temp": 0.6,
|
| 29 |
+
"max_temp": 2,
|
| 30 |
+
"dynatemp_exponent": 1,
|
| 31 |
+
"smoothing_factor": 0,
|
| 32 |
+
"smoothing_curve": 1,
|
| 33 |
+
"dry_allowed_length": 4,
|
| 34 |
+
"dry_multiplier": 0.8,
|
| 35 |
+
"dry_base": 1.75,
|
| 36 |
+
"dry_sequence_breakers": "[\"\\n\", \":\", \"\\\"\", \"*\", \"\"]",
|
| 37 |
+
"dry_penalty_last_n": 0,
|
| 38 |
+
"add_bos_token": true,
|
| 39 |
+
"ban_eos_token": false,
|
| 40 |
+
"skip_special_tokens": false,
|
| 41 |
+
"mirostat_mode": 0,
|
| 42 |
+
"mirostat_tau": 5,
|
| 43 |
+
"mirostat_eta": 0.1,
|
| 44 |
+
"guidance_scale": 1,
|
| 45 |
+
"negative_prompt": "",
|
| 46 |
+
"grammar_string": "",
|
| 47 |
+
"json_schema": {},
|
| 48 |
+
"json_schema_allow_empty": false,
|
| 49 |
+
"banned_tokens": "",
|
| 50 |
+
"sampler_priority": [
|
| 51 |
+
"repetition_penalty",
|
| 52 |
+
"presence_penalty",
|
| 53 |
+
"frequency_penalty",
|
| 54 |
+
"dry",
|
| 55 |
+
"top_k",
|
| 56 |
+
"min_p",
|
| 57 |
+
"top_p",
|
| 58 |
+
"top_n_sigma",
|
| 59 |
+
"tfs",
|
| 60 |
+
"typical_p",
|
| 61 |
+
"epsilon_cutoff",
|
| 62 |
+
"eta_cutoff",
|
| 63 |
+
"top_a",
|
| 64 |
+
"mirostat",
|
| 65 |
+
"quadratic_sampling",
|
| 66 |
+
"dynamic_temperature",
|
| 67 |
+
"temperature",
|
| 68 |
+
"xtc",
|
| 69 |
+
"encoder_repetition_penalty",
|
| 70 |
+
"no_repeat_ngram"
|
| 71 |
+
],
|
| 72 |
+
"samplers": [
|
| 73 |
+
"top_k",
|
| 74 |
+
"penalties",
|
| 75 |
+
"dry",
|
| 76 |
+
"top_n_sigma",
|
| 77 |
+
"typ_p",
|
| 78 |
+
"top_p",
|
| 79 |
+
"min_p",
|
| 80 |
+
"xtc",
|
| 81 |
+
"temperature",
|
| 82 |
+
"adaptive_p"
|
| 83 |
+
],
|
| 84 |
+
"samplers_priorities": [
|
| 85 |
+
"dry",
|
| 86 |
+
"penalties",
|
| 87 |
+
"no_repeat_ngram",
|
| 88 |
+
"temperature",
|
| 89 |
+
"top_nsigma",
|
| 90 |
+
"top_p_top_k",
|
| 91 |
+
"top_a",
|
| 92 |
+
"min_p",
|
| 93 |
+
"tfs",
|
| 94 |
+
"eta_cutoff",
|
| 95 |
+
"epsilon_cutoff",
|
| 96 |
+
"typical_p",
|
| 97 |
+
"quadratic",
|
| 98 |
+
"xtc"
|
| 99 |
+
],
|
| 100 |
+
"ignore_eos_token": false,
|
| 101 |
+
"spaces_between_special_tokens": true,
|
| 102 |
+
"speculative_ngram": false,
|
| 103 |
+
"sampler_order": [
|
| 104 |
+
6,
|
| 105 |
+
2,
|
| 106 |
+
0,
|
| 107 |
+
1,
|
| 108 |
+
3,
|
| 109 |
+
4,
|
| 110 |
+
5
|
| 111 |
+
],
|
| 112 |
+
"logit_bias": [],
|
| 113 |
+
"xtc_threshold": 0,
|
| 114 |
+
"xtc_probability": 0,
|
| 115 |
+
"nsigma": 0,
|
| 116 |
+
"min_keep": 0,
|
| 117 |
+
"extensions": {},
|
| 118 |
+
"adaptive_target": -0.01,
|
| 119 |
+
"adaptive_decay": 0.9,
|
| 120 |
+
"rep_pen_size": 0,
|
| 121 |
+
"genamt": 4096,
|
| 122 |
+
"max_length": 32768
|
| 123 |
+
}
|