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/SHA256SUMS.txt with huggingface_hub
Browse files- reproduce/SHA256SUMS.txt +9 -9
reproduce/SHA256SUMS.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
5244ef9dbcf10d7d73bf5e7c89bac7dbbc08c3842aa386ce40718555ee79a7bf *model-00010-of-00013.safetensors
|
| 11 |
2808d87385a9f3834e024329a5b399a5e4be6fbf18727fe58a6ac46ebbcdbc53 *model-00011-of-00013.safetensors
|
| 12 |
71d940f4c5bdc19df6586eab25ababcc028260998eef20dee7aafd5a56677709 *model-00012-of-00013.safetensors
|
|
|
|
| 1 |
+
cef1b90847174d2b5e693c5e0373f0ba37a9ae2cd09f82b5ceb2a91452c25b50 *model-00001-of-00013.safetensors
|
| 2 |
+
0a2a8e69d12409c774b71024b5922924860dfedd1947e460e081ec1852c07d54 *model-00002-of-00013.safetensors
|
| 3 |
+
56b993227cdb65a21c2abdba2fa010bcbb6b3f0d086e9365337215520a5760b0 *model-00003-of-00013.safetensors
|
| 4 |
+
af2ff22654e79dc62b73e1692fe966bfeaed7a9466d9c6ece5a1909cadeafa87 *model-00004-of-00013.safetensors
|
| 5 |
+
67265d0f41bd865ae858ca1a922f82a722f45972327e39d85fdf882d1bf34a4e *model-00005-of-00013.safetensors
|
| 6 |
+
99ff71b5f1881eaf1ae0e7ad214d88a0a24acfde3e6cf4930fa49bc6d3061f43 *model-00006-of-00013.safetensors
|
| 7 |
+
7f071b26526b4a5fa3991227ea45c3b0cb64e0d06873bc6333cc0ad515a32bcd *model-00007-of-00013.safetensors
|
| 8 |
+
e41f29cf5718254f8b98678fb933961d386804c5acd226c1d036cf4620d71cae *model-00008-of-00013.safetensors
|
| 9 |
+
6076a41151a314a62c0ebc9bbaf3434bac59c040ffad860134fb2750ea67b619 *model-00009-of-00013.safetensors
|
| 10 |
5244ef9dbcf10d7d73bf5e7c89bac7dbbc08c3842aa386ce40718555ee79a7bf *model-00010-of-00013.safetensors
|
| 11 |
2808d87385a9f3834e024329a5b399a5e4be6fbf18727fe58a6ac46ebbcdbc53 *model-00011-of-00013.safetensors
|
| 12 |
71d940f4c5bdc19df6586eab25ababcc028260998eef20dee7aafd5a56677709 *model-00012-of-00013.safetensors
|