Instructions to use schonsense/emdasterisk_doublequash_14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use schonsense/emdasterisk_doublequash_14B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="schonsense/emdasterisk_doublequash_14B") 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("schonsense/emdasterisk_doublequash_14B") model = AutoModelForMultimodalLM.from_pretrained("schonsense/emdasterisk_doublequash_14B", 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 schonsense/emdasterisk_doublequash_14B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "schonsense/emdasterisk_doublequash_14B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "schonsense/emdasterisk_doublequash_14B", "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/schonsense/emdasterisk_doublequash_14B
- SGLang
How to use schonsense/emdasterisk_doublequash_14B 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 "schonsense/emdasterisk_doublequash_14B" \ --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": "schonsense/emdasterisk_doublequash_14B", "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 "schonsense/emdasterisk_doublequash_14B" \ --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": "schonsense/emdasterisk_doublequash_14B", "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 schonsense/emdasterisk_doublequash_14B with Docker Model Runner:
docker model run hf.co/schonsense/emdasterisk_doublequash_14B
Download PACKAGE_VERIFICATION.json from schonsense/emdasterisk_doublequash_14B: direct link, hf CLI and curl.
- Browser
- Download file 2.11 kB
-
https://huggingface.co/schonsense/emdasterisk_doublequash_14B/resolve/main/PACKAGE_VERIFICATION.json
- Command line
-
hf download hf://schonsense/emdasterisk_doublequash_14B/PACKAGE_VERIFICATION.json
-
curl -L -o PACKAGE_VERIFICATION.json https://huggingface.co/schonsense/emdasterisk_doublequash_14B/resolve/main/PACKAGE_VERIFICATION.json
2.11 kB
| {"checkpoint_step":669,"files":{"README.md":"57091efe2d1389bba5f7d22f75e83b25cd89ddbda3cf3389dec21c24d0dd86a1","SYSTEM_PROMPT.txt":"df30b6d8d0124f1f905c030be0c820a4720d7361d7c3b18d6542e58a5c0c0446","TRAINING_LINEAGE.json":"490f31b6f19f671f55fb73bcf86f39cec7f3cfcab81e31c0d08a51d04ff7b899","chat_template.jinja":"2f545122222db8bb43ca0ea0c49e9185320a8670f7d35575b0da0eb48b1e8970","config.json":"97e9eabb193648ca2dececbf0911e105319954a4f1bd57469e690d03cd95a86e","generation_config.json":"e0923390059f84a9180b00e5501778acc45ea9856cd7f2fd68208b360927c677","model-00001-of-00006.safetensors":"d59386916311040f2b71c529e713f4a97ba60ce24416bbc73873fb015b057f1d","model-00002-of-00006.safetensors":"04573d813dbd0f123e2f9e1b1672e40664f764ecaa16f57004dde9b3293ad164","model-00003-of-00006.safetensors":"bc1e3f4d6be7d4a39b660de6a07bd455a5c76eaaf35fb609a3dd84336be74204","model-00004-of-00006.safetensors":"a9fc275b5eea710d43ba077aebf13281918573a75a5ed349e137c498c4154f88","model-00005-of-00006.safetensors":"f53d08f4627a6039660cc3c16e0dcddf6ecc0646da491297f31b327b82ca3c53","model-00006-of-00006.safetensors":"84d14ff670fa4b407f81dce5bc86c6a2bd87d9b4f2750e1577053294d54ab08e","model.safetensors.index.json":"50d07948f11d89b5eddc5fb21485484555376c0627a9537b37f3f17cc9f5a103","params.json":"b2fc120fee26653d0aa07052122793f86750db9c12b6e11bcf7dfb36440da077","processor_config.json":"ece2373c2ae391bce18785a1810543bc6173a1f28b6767cffab2c35dbea5f002","special_tokens_map.json":"0a5c981e8c5c6f8886ee007a6d4543a0be6b221cb9ca32a8709384a4c6fc8cbb","tekken.json":"600bb27946565481ecf51ba8aee252e49b9a68507866080ac9c30185bb312843","tokenizer.json":"d5f6046775b112f0e2d456ee9dba450684ab964fe5c4e231599bdc6773028135","tokenizer_config.json":"f59f7294e4f26383d0ea93840fe21cf197784be0842a8301a0343e8c34ed0d6d"},"finite_forward_pass":true,"merged_tensors":281,"processor_verification":"runtime check unavailable: local environment lacks torchvision; source processor config preserved byte-for-byte","transformers_loading_info":{"error_msgs":[],"mismatched_keys":[],"missing_keys":[],"unexpected_keys":[]},"verified_tensor_count":585} | |