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 |
+
f7dd96f6155d83e66cd2476ee323c51ff3aa3bab8e7250bdeeaf2a1e2fedf50b *model-00001-of-00013.safetensors
|
| 2 |
+
2854bd5042bd065703cc51a856084ef25860874b594537b125dd9d644bdc9e36 *model-00002-of-00013.safetensors
|
| 3 |
+
13db73d1011e2d19939e168611136efa1f9634d038fbb5e4e716cb5bdadaedc2 *model-00003-of-00013.safetensors
|
| 4 |
+
e32e47964773309e022e26b764b0a481f90a5f58a74f11832973f7ed58ca48e4 *model-00004-of-00013.safetensors
|
| 5 |
+
c3e0f2f0a8c8130100e2ca046cee533b18181517da0176e185db3afca33291eb *model-00005-of-00013.safetensors
|
| 6 |
+
9cc948e306720e6a484694bdd609626c247212c4da25d0f56567c959d0efff56 *model-00006-of-00013.safetensors
|
| 7 |
+
1945df8a8723235465268af0b4562db01cc8b7c936a5b376db4ce5a065d5eeb9 *model-00007-of-00013.safetensors
|
| 8 |
+
805b1616f3d625be5ea1210ed3f04befa83b4a344070fb1d7c827889dd6c01ee *model-00008-of-00013.safetensors
|
| 9 |
+
3478a29b593292b0e6b2623f462b036572cedc86d5ec02abcbf36c87df6b3747 *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
|