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 +21 -21
reproduce/reproduce.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"version": "4",
|
| 3 |
-
"timestamp": "2026-11-21T23:
|
| 4 |
"system": {
|
| 5 |
"python": {
|
| 6 |
"version": "3.13.11",
|
|
@@ -210,7 +210,7 @@
|
|
| 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-21T23:25:06",
|
| 4 |
"system": {
|
| 5 |
"python": {
|
| 6 |
"version": "3.13.11",
|
|
|
|
| 210 |
"max_shard_size": "5GB",
|
| 211 |
"export_strategy": "merge",
|
| 212 |
"checkpoint_action": "continue",
|
| 213 |
+
"trial_index": 2,
|
| 214 |
"n_additional_trials": null,
|
| 215 |
"model_action": "upload",
|
| 216 |
"upload_repo_private": false,
|
|
|
|
| 318 |
}
|
| 319 |
},
|
| 320 |
"parameters": {
|
| 321 |
+
"start_layer_index": 0,
|
| 322 |
"end_layer_index": 19,
|
| 323 |
+
"preserve_good_behavior_weight": 0.07257303717925598,
|
| 324 |
+
"steer_bad_behavior_weight": 0.0008669255417585854,
|
| 325 |
+
"overcorrect_relative_weight": 1.0102337355545934,
|
| 326 |
"neighbor_count": 13,
|
| 327 |
"loss_mode": "relative"
|
| 328 |
},
|
|
|
|
| 330 |
{
|
| 331 |
"name": "Refusals",
|
| 332 |
"score": {
|
| 333 |
+
"value": 0.03,
|
| 334 |
+
"rich_display": "[bold]3[/]/100",
|
| 335 |
+
"md_display": "3/100"
|
| 336 |
},
|
| 337 |
"baseline": {
|
| 338 |
"value": 1.0,
|
|
|
|
| 343 |
{
|
| 344 |
"name": "KL divergence",
|
| 345 |
"score": {
|
| 346 |
+
"value": 0.06691879034042358,
|
| 347 |
+
"rich_display": "[bold]0.0669[/]",
|
| 348 |
+
"md_display": "0.0669"
|
| 349 |
},
|
| 350 |
"baseline": {
|
| 351 |
"value": 0,
|
|
|
|
| 355 |
}
|
| 356 |
],
|
| 357 |
"hashes": {
|
| 358 |
+
"model-00001-of-00013.safetensors": "f7dd96f6155d83e66cd2476ee323c51ff3aa3bab8e7250bdeeaf2a1e2fedf50b",
|
| 359 |
+
"model-00002-of-00013.safetensors": "2854bd5042bd065703cc51a856084ef25860874b594537b125dd9d644bdc9e36",
|
| 360 |
+
"model-00003-of-00013.safetensors": "13db73d1011e2d19939e168611136efa1f9634d038fbb5e4e716cb5bdadaedc2",
|
| 361 |
+
"model-00004-of-00013.safetensors": "e32e47964773309e022e26b764b0a481f90a5f58a74f11832973f7ed58ca48e4",
|
| 362 |
+
"model-00005-of-00013.safetensors": "c3e0f2f0a8c8130100e2ca046cee533b18181517da0176e185db3afca33291eb",
|
| 363 |
+
"model-00006-of-00013.safetensors": "9cc948e306720e6a484694bdd609626c247212c4da25d0f56567c959d0efff56",
|
| 364 |
+
"model-00007-of-00013.safetensors": "1945df8a8723235465268af0b4562db01cc8b7c936a5b376db4ce5a065d5eeb9",
|
| 365 |
+
"model-00008-of-00013.safetensors": "805b1616f3d625be5ea1210ed3f04befa83b4a344070fb1d7c827889dd6c01ee",
|
| 366 |
+
"model-00009-of-00013.safetensors": "3478a29b593292b0e6b2623f462b036572cedc86d5ec02abcbf36c87df6b3747",
|
| 367 |
"model-00010-of-00013.safetensors": "5244ef9dbcf10d7d73bf5e7c89bac7dbbc08c3842aa386ce40718555ee79a7bf",
|
| 368 |
"model-00011-of-00013.safetensors": "2808d87385a9f3834e024329a5b399a5e4be6fbf18727fe58a6ac46ebbcdbc53",
|
| 369 |
"model-00012-of-00013.safetensors": "71d940f4c5bdc19df6586eab25ababcc028260998eef20dee7aafd5a56677709",
|