Image-Text-to-Text
Transformers
Safetensors
inkling2_loop
conversational
Mixture of Experts
heretic
uncensored
decensored
abliterated
reproducible
modelopt
Instructions to use electroglyph/Inkling-2-Mini-uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use electroglyph/Inkling-2-Mini-uncensored with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="electroglyph/Inkling-2-Mini-uncensored") 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("electroglyph/Inkling-2-Mini-uncensored") model = AutoModelForMultimodalLM.from_pretrained("electroglyph/Inkling-2-Mini-uncensored", 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 electroglyph/Inkling-2-Mini-uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "electroglyph/Inkling-2-Mini-uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "electroglyph/Inkling-2-Mini-uncensored", "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/electroglyph/Inkling-2-Mini-uncensored
- SGLang
How to use electroglyph/Inkling-2-Mini-uncensored 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 "electroglyph/Inkling-2-Mini-uncensored" \ --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": "electroglyph/Inkling-2-Mini-uncensored", "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 "electroglyph/Inkling-2-Mini-uncensored" \ --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": "electroglyph/Inkling-2-Mini-uncensored", "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" } } ] } ] }' - Docker Model Runner
How to use electroglyph/Inkling-2-Mini-uncensored with Docker Model Runner:
docker model run hf.co/electroglyph/Inkling-2-Mini-uncensored
Upload reproduce/reproduce.json with huggingface_hub
Browse files- reproduce/reproduce.json +22 -22
reproduce/reproduce.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"version": "4",
|
| 3 |
-
"timestamp": "2026-11-
|
| 4 |
"system": {
|
| 5 |
"python": {
|
| 6 |
"version": "3.13.11",
|
|
@@ -203,14 +203,14 @@
|
|
| 203 |
"instance_name": null
|
| 204 |
}
|
| 205 |
],
|
| 206 |
-
"n_trials":
|
| 207 |
"n_startup_trials": 20,
|
| 208 |
"seed": 777,
|
| 209 |
"modified_model_type": "decensored",
|
| 210 |
"max_shard_size": "5GB",
|
| 211 |
"export_strategy": "merge",
|
| 212 |
"checkpoint_action": "continue",
|
| 213 |
-
"trial_index":
|
| 214 |
"n_additional_trials": null,
|
| 215 |
"model_action": "upload",
|
| 216 |
"upload_repo_private": false,
|
|
@@ -318,11 +318,11 @@
|
|
| 318 |
}
|
| 319 |
},
|
| 320 |
"parameters": {
|
| 321 |
-
"start_layer_index":
|
| 322 |
"end_layer_index": 19,
|
| 323 |
-
"preserve_good_behavior_weight": 0.
|
| 324 |
-
"steer_bad_behavior_weight": 0.
|
| 325 |
-
"overcorrect_relative_weight": 1.
|
| 326 |
"neighbor_count": 13,
|
| 327 |
"loss_mode": "relative"
|
| 328 |
},
|
|
@@ -330,9 +330,9 @@
|
|
| 330 |
{
|
| 331 |
"name": "Refusals",
|
| 332 |
"score": {
|
| 333 |
-
"value": 0.
|
| 334 |
-
"rich_display": "[bold]
|
| 335 |
-
"md_display": "
|
| 336 |
},
|
| 337 |
"baseline": {
|
| 338 |
"value": 1.0,
|
|
@@ -343,9 +343,9 @@
|
|
| 343 |
{
|
| 344 |
"name": "KL divergence",
|
| 345 |
"score": {
|
| 346 |
-
"value": 0.
|
| 347 |
-
"rich_display": "[bold]0.
|
| 348 |
-
"md_display": "0.
|
| 349 |
},
|
| 350 |
"baseline": {
|
| 351 |
"value": 0,
|
|
@@ -355,15 +355,15 @@
|
|
| 355 |
}
|
| 356 |
],
|
| 357 |
"hashes": {
|
| 358 |
-
"model-00001-of-00013.safetensors": "
|
| 359 |
-
"model-00002-of-00013.safetensors": "
|
| 360 |
-
"model-00003-of-00013.safetensors": "
|
| 361 |
-
"model-00004-of-00013.safetensors": "
|
| 362 |
-
"model-00005-of-00013.safetensors": "
|
| 363 |
-
"model-00006-of-00013.safetensors": "
|
| 364 |
-
"model-00007-of-00013.safetensors": "
|
| 365 |
-
"model-00008-of-00013.safetensors": "
|
| 366 |
-
"model-00009-of-00013.safetensors": "
|
| 367 |
"model-00010-of-00013.safetensors": "5244ef9dbcf10d7d73bf5e7c89bac7dbbc08c3842aa386ce40718555ee79a7bf",
|
| 368 |
"model-00011-of-00013.safetensors": "2808d87385a9f3834e024329a5b399a5e4be6fbf18727fe58a6ac46ebbcdbc53",
|
| 369 |
"model-00012-of-00013.safetensors": "71d940f4c5bdc19df6586eab25ababcc028260998eef20dee7aafd5a56677709",
|
|
|
|
| 1 |
{
|
| 2 |
"version": "4",
|
| 3 |
+
"timestamp": "2026-11-22T00:10:21",
|
| 4 |
"system": {
|
| 5 |
"python": {
|
| 6 |
"version": "3.13.11",
|
|
|
|
| 203 |
"instance_name": null
|
| 204 |
}
|
| 205 |
],
|
| 206 |
+
"n_trials": 609,
|
| 207 |
"n_startup_trials": 20,
|
| 208 |
"seed": 777,
|
| 209 |
"modified_model_type": "decensored",
|
| 210 |
"max_shard_size": "5GB",
|
| 211 |
"export_strategy": "merge",
|
| 212 |
"checkpoint_action": "continue",
|
| 213 |
+
"trial_index": 1,
|
| 214 |
"n_additional_trials": null,
|
| 215 |
"model_action": "upload",
|
| 216 |
"upload_repo_private": false,
|
|
|
|
| 318 |
}
|
| 319 |
},
|
| 320 |
"parameters": {
|
| 321 |
+
"start_layer_index": 1,
|
| 322 |
"end_layer_index": 19,
|
| 323 |
+
"preserve_good_behavior_weight": 0.06940318200236513,
|
| 324 |
+
"steer_bad_behavior_weight": 0.0007969613807626803,
|
| 325 |
+
"overcorrect_relative_weight": 1.0121740905684955,
|
| 326 |
"neighbor_count": 13,
|
| 327 |
"loss_mode": "relative"
|
| 328 |
},
|
|
|
|
| 330 |
{
|
| 331 |
"name": "Refusals",
|
| 332 |
"score": {
|
| 333 |
+
"value": 0.02,
|
| 334 |
+
"rich_display": "[bold]2[/]/100",
|
| 335 |
+
"md_display": "2/100"
|
| 336 |
},
|
| 337 |
"baseline": {
|
| 338 |
"value": 1.0,
|
|
|
|
| 343 |
{
|
| 344 |
"name": "KL divergence",
|
| 345 |
"score": {
|
| 346 |
+
"value": 0.0760570541024208,
|
| 347 |
+
"rich_display": "[bold]0.0761[/]",
|
| 348 |
+
"md_display": "0.0761"
|
| 349 |
},
|
| 350 |
"baseline": {
|
| 351 |
"value": 0,
|
|
|
|
| 355 |
}
|
| 356 |
],
|
| 357 |
"hashes": {
|
| 358 |
+
"model-00001-of-00013.safetensors": "cef1b90847174d2b5e693c5e0373f0ba37a9ae2cd09f82b5ceb2a91452c25b50",
|
| 359 |
+
"model-00002-of-00013.safetensors": "0a2a8e69d12409c774b71024b5922924860dfedd1947e460e081ec1852c07d54",
|
| 360 |
+
"model-00003-of-00013.safetensors": "56b993227cdb65a21c2abdba2fa010bcbb6b3f0d086e9365337215520a5760b0",
|
| 361 |
+
"model-00004-of-00013.safetensors": "af2ff22654e79dc62b73e1692fe966bfeaed7a9466d9c6ece5a1909cadeafa87",
|
| 362 |
+
"model-00005-of-00013.safetensors": "67265d0f41bd865ae858ca1a922f82a722f45972327e39d85fdf882d1bf34a4e",
|
| 363 |
+
"model-00006-of-00013.safetensors": "99ff71b5f1881eaf1ae0e7ad214d88a0a24acfde3e6cf4930fa49bc6d3061f43",
|
| 364 |
+
"model-00007-of-00013.safetensors": "7f071b26526b4a5fa3991227ea45c3b0cb64e0d06873bc6333cc0ad515a32bcd",
|
| 365 |
+
"model-00008-of-00013.safetensors": "e41f29cf5718254f8b98678fb933961d386804c5acd226c1d036cf4620d71cae",
|
| 366 |
+
"model-00009-of-00013.safetensors": "6076a41151a314a62c0ebc9bbaf3434bac59c040ffad860134fb2750ea67b619",
|
| 367 |
"model-00010-of-00013.safetensors": "5244ef9dbcf10d7d73bf5e7c89bac7dbbc08c3842aa386ce40718555ee79a7bf",
|
| 368 |
"model-00011-of-00013.safetensors": "2808d87385a9f3834e024329a5b399a5e4be6fbf18727fe58a6ac46ebbcdbc53",
|
| 369 |
"model-00012-of-00013.safetensors": "71d940f4c5bdc19df6586eab25ababcc028260998eef20dee7aafd5a56677709",
|