Instructions to use Ashmal/MBZUAI-ORYX-new2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ashmal/MBZUAI-ORYX-new2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ashmal/MBZUAI-ORYX-new2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ashmal/MBZUAI-ORYX-new2") model = AutoModelForCausalLM.from_pretrained("Ashmal/MBZUAI-ORYX-new2", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ashmal/MBZUAI-ORYX-new2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ashmal/MBZUAI-ORYX-new2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ashmal/MBZUAI-ORYX-new2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ashmal/MBZUAI-ORYX-new2
- SGLang
How to use Ashmal/MBZUAI-ORYX-new2 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 "Ashmal/MBZUAI-ORYX-new2" \ --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": "Ashmal/MBZUAI-ORYX-new2", "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 "Ashmal/MBZUAI-ORYX-new2" \ --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": "Ashmal/MBZUAI-ORYX-new2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ashmal/MBZUAI-ORYX-new2 with Docker Model Runner:
docker model run hf.co/Ashmal/MBZUAI-ORYX-new2
Commit History
-
Update README.md
Verified signatured5c6d1d -
Upload model-00016-of-00063.safetensors with huggingface_hub
Verified signaturedb26bc4 -
Upload model-00055-of-00063.safetensors with huggingface_hub
Verified signature3fc97b7 -
Upload model-00047-of-00063.safetensors with huggingface_hub
Verified signaturebc9e8e5 -
Upload model-00008-of-00063.safetensors with huggingface_hub
Verified signature5c7fc9e -
Upload model-00032-of-00063.safetensors with huggingface_hub
Verified signature12a41d4 -
Upload model-00035-of-00063.safetensors with huggingface_hub
Verified signatureda91ab4 -
Upload model-00020-of-00063.safetensors with huggingface_hub
Verified signature983a8cf -
Upload model-00004-of-00063.safetensors with huggingface_hub
Verified signatureb306995 -
Upload model-00051-of-00063.safetensors with huggingface_hub
Verified signature43072a9 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature59d2681 -
Upload model-00001-of-00063.safetensors with huggingface_hub
Verified signaturede63155 -
Upload model-00017-of-00063.safetensors with huggingface_hub
Verified signaturebb78eb1 -
Upload config.json with huggingface_hub
Verified signaturebf4d50f -
Upload model-00034-of-00063.safetensors with huggingface_hub
Verified signatureab62dd2 -
Upload special_tokens_map.json with huggingface_hub
Verified signaturea1abfac -
Upload model-00040-of-00063.safetensors with huggingface_hub
Verified signaturef6b7129 -
Upload model-00039-of-00063.safetensors with huggingface_hub
Verified signaturea22e1a7 -
Upload model-00052-of-00063.safetensors with huggingface_hub
Verified signatureaa0a2f4 -
Upload merges.txt with huggingface_hub
Verified signature5978cf1 -
Upload model-00023-of-00063.safetensors with huggingface_hub
Verified signature199e85b -
Upload model-00012-of-00063.safetensors with huggingface_hub
Verified signature241e76c -
Upload model-00049-of-00063.safetensors with huggingface_hub
Verified signaturec5ec805 -
Upload model-00025-of-00063.safetensors with huggingface_hub
Verified signaturec9bab47 -
Upload model-00018-of-00063.safetensors with huggingface_hub
Verified signaturef6f5c97 -
Upload model-00038-of-00063.safetensors with huggingface_hub
Verified signature8dd4b47 -
Upload generation_config.json with huggingface_hub
Verified signature7b5203b -
Upload model-00060-of-00063.safetensors with huggingface_hub
Verified signature8021f4f -
Upload model-00021-of-00063.safetensors with huggingface_hub
Verified signature19449b1 -
Upload model-00011-of-00063.safetensors with huggingface_hub
Verified signatureddccac8 -
Upload model-00024-of-00063.safetensors with huggingface_hub
Verified signature450a672 -
Upload model-00044-of-00063.safetensors with huggingface_hub
Verified signaturef30e214 -
Upload model-00027-of-00063.safetensors with huggingface_hub
Verified signature4b2644c
-
Upload added_tokens.json with huggingface_hub
Verified signature119e0a7 -
Upload model-00028-of-00063.safetensors with huggingface_hub
Verified signaturedd49db6 -
Upload model-00057-of-00063.safetensors with huggingface_hub
Verified signature3b6500d -
Upload model-00056-of-00063.safetensors with huggingface_hub
Verified signature1f734a5 -
Upload model-00033-of-00063.safetensors with huggingface_hub
Verified signatured620fce -
Upload model-00058-of-00063.safetensors with huggingface_hub
Verified signatureddfc98f -
Upload model-00007-of-00063.safetensors with huggingface_hub
Verified signature0a80267 -
Upload model-00063-of-00063.safetensors with huggingface_hub
Verified signaturec993c85 -
Upload model-00048-of-00063.safetensors with huggingface_hub
Verified signature934572d -
Upload model-00046-of-00063.safetensors with huggingface_hub
Verified signature6c7cefe -
Upload model-00037-of-00063.safetensors with huggingface_hub
Verified signaturec2e8fce -
Upload model-00015-of-00063.safetensors with huggingface_hub
Verified signature438ad11 -
Upload model-00002-of-00063.safetensors with huggingface_hub
Verified signature1cd2a61 -
Upload model-00009-of-00063.safetensors with huggingface_hub
Verified signatureb1d0cf6 -
Upload model-00036-of-00063.safetensors with huggingface_hub
Verified signaturec1f1545 -
Upload tokenizer.json with huggingface_hub
Verified signaturea47b9ac -
Upload model-00010-of-00063.safetensors with huggingface_hub
Verified signaturedec9e0f