Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
conversational
compressed-tensors
Instructions to use CosmicRaisins/Ornith-1.0-397B-W4A16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CosmicRaisins/Ornith-1.0-397B-W4A16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CosmicRaisins/Ornith-1.0-397B-W4A16") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("CosmicRaisins/Ornith-1.0-397B-W4A16") model = AutoModelForMultimodalLM.from_pretrained("CosmicRaisins/Ornith-1.0-397B-W4A16", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CosmicRaisins/Ornith-1.0-397B-W4A16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CosmicRaisins/Ornith-1.0-397B-W4A16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CosmicRaisins/Ornith-1.0-397B-W4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CosmicRaisins/Ornith-1.0-397B-W4A16
- SGLang
How to use CosmicRaisins/Ornith-1.0-397B-W4A16 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 "CosmicRaisins/Ornith-1.0-397B-W4A16" \ --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": "CosmicRaisins/Ornith-1.0-397B-W4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "CosmicRaisins/Ornith-1.0-397B-W4A16" \ --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": "CosmicRaisins/Ornith-1.0-397B-W4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CosmicRaisins/Ornith-1.0-397B-W4A16 with Docker Model Runner:
docker model run hf.co/CosmicRaisins/Ornith-1.0-397B-W4A16
Add files using upload-large-folder tool
Browse files- model-00004-of-00122.safetensors +3 -0
- model-00039-of-00122.safetensors +3 -0
- model-00061-of-00122.safetensors +3 -0
- model-00065-of-00122.safetensors +3 -0
- model-00068-of-00122.safetensors +3 -0
- model-00072-of-00122.safetensors +3 -0
- model-00075-of-00122.safetensors +3 -0
- model-00099-of-00122.safetensors +3 -0
- model-00102-of-00122.safetensors +3 -0
- model-00114-of-00122.safetensors +3 -0
model-00004-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00b48d911aa25c60407c0fdc8a200cd43e48a4abc8a71ab9029d479e39810f54
|
| 3 |
+
size 2214592832
|
model-00039-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2f521fce637a467b2c6b8776b349e19605435cf32f2210e4befea6b1c0562fd
|
| 3 |
+
size 1346399232
|
model-00061-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a9c4696007ab593a96832f4f218be1197795db09f54b9b3781e20d98416cca2
|
| 3 |
+
size 1372711832
|
model-00065-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:193fcdabba69b9357f8b44770fea68a42476d1557b1788abf881e81d40fb4741
|
| 3 |
+
size 1372711832
|
model-00068-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:844b2711ef8d4dc123f6fc4aeb793107d49ada5f40b4facb037e9ccdc9d2ab7a
|
| 3 |
+
size 2214592832
|
model-00072-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac6121006c7e8a473785adfba5b96343c55ac8a487371f6415faaf3a5f550a9e
|
| 3 |
+
size 2214592832
|
model-00075-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:758878a8223a1202df85d7b6aaef5754496a2f8ea13fab5c61d05480c5291b43
|
| 3 |
+
size 1372711832
|
model-00099-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2a3f81be0f6fa902b1c59a10d6ee195196e7eb2d92497483aa69a3a80cfe7c4
|
| 3 |
+
size 1372711832
|
model-00102-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f4bcb655f1d61d0391241ed7d851968b969be55426522e58b3f44328dc4681d
|
| 3 |
+
size 2214592832
|
model-00114-of-00122.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a335cfcf93378349b849d417fe0525fb57b1d38c0099baeed3448e2521e3099
|
| 3 |
+
size 2214592832
|