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
Commit History
2 days ago
-
Update Heretic study checkpoint
Verified signature8184ff1 -
Upload reproduce/thinkingmachines--Inkling-2-Mini.jsonl with huggingface_hub
Verified signature9c76362 -
Upload reproduce/reproduce.json with huggingface_hub
Verified signatureff7bb20 -
Upload processor
Verified signature5391747 -
Upload tokenizer
Verified signatureb8649ac -
Update Heretic study checkpoint
Verified signature38981cd -
Upload reproduce/thinkingmachines--Inkling-2-Mini.jsonl with huggingface_hub
Verified signature4c32ca4 -
Upload reproduce/README.md with huggingface_hub
Verified signature012ffb2 -
Upload reproduce/reproduce.json with huggingface_hub
Verified signature3dbabde -
Upload reproduce/SHA256SUMS.txt with huggingface_hub
Verified signatureb7ee98c -
Upload reproduce/config.toml with huggingface_hub
Verified signature82432da -
Upload README.md with huggingface_hub
Verified signature908c9ef -
Upload processor
Verified signaturebe6a701 -
Upload tokenizer
Verified signature894153d -
Upload heretic_upload_manifest.json
Verified signature3d3132f -
Upload model-00009-of-00013.safetensors
Verified signature9768ac9 -
Upload model-00008-of-00013.safetensors
Verified signature253e551 -
Upload model-00007-of-00013.safetensors
Verified signature49a4a91 -
Upload model-00006-of-00013.safetensors
Verified signature3d28b24 -
Upload model-00005-of-00013.safetensors
Verified signaturedab9bce -
Upload model-00004-of-00013.safetensors
Verified signature501921f -
Upload model-00003-of-00013.safetensors
Verified signature7936b8f -
Upload model-00002-of-00013.safetensors
Verified signature393223c -
Upload model-00001-of-00013.safetensors
Verified signaturef12c652 -
Run sync: periodic
Verified signature4c379f4
3 days ago
-
Update Heretic study checkpoint
Verified signatureebc0a1d -
Update Heretic study checkpoint
Verified signaturedfa6cad -
Upload reproduce/thinkingmachines--Inkling-2-Mini.jsonl with huggingface_hub
Verified signature9d0990c -
Upload reproduce/reproduce.json with huggingface_hub
Verified signature54d5aee -
Upload reproduce/config.toml with huggingface_hub
Verified signaturedceb99d -
Upload processor
Verified signature44b4c50 -
Upload tokenizer
Verified signatureaa9f601 -
Run sync: periodic
Verified signature92428de -
Update Heretic study checkpoint
Verified signature5822376 -
Upload reproduce/thinkingmachines--Inkling-2-Mini.jsonl with huggingface_hub
Verified signature10cf129 -
Upload reproduce/README.md with huggingface_hub
Verified signature6a46d44 -
Upload reproduce/reproduce.json with huggingface_hub
Verified signature6a0708b -
Upload reproduce/SHA256SUMS.txt with huggingface_hub
Verified signatureec54928 -
Upload reproduce/config.toml with huggingface_hub
Verified signature43e3091 -
Upload README.md with huggingface_hub
Verified signature5c437d6 -
Upload processor
Verified signature28466d5 -
Upload tokenizer
Verified signature84ceb83 -
Upload heretic_upload_manifest.json
Verified signatureb204f9e -
Upload model-00009-of-00013.safetensors
Verified signatureb6be431 -
Upload model-00008-of-00013.safetensors
Verified signatureb6d55a5 -
Upload model-00007-of-00013.safetensors
Verified signature3a3b520 -
Upload model-00006-of-00013.safetensors
Verified signaturec7b5412 -
Upload model-00005-of-00013.safetensors
Verified signature2a8297c -
Upload model-00004-of-00013.safetensors
Verified signaturedde49db -
Upload model-00003-of-00013.safetensors
Verified signature5ee4f84