Text Generation
Transformers
Safetensors
English
qwen3
code
agent
Merge
uncensored
Rhea
multi-pass
reasoning
Claude
Mythos
max
xhigh
conversational
text-generation-inference
Instructions to use roskosmos19/Orca-2-4B-Coding-max with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use roskosmos19/Orca-2-4B-Coding-max with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="roskosmos19/Orca-2-4B-Coding-max") 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("roskosmos19/Orca-2-4B-Coding-max") model = AutoModelForCausalLM.from_pretrained("roskosmos19/Orca-2-4B-Coding-max", 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 roskosmos19/Orca-2-4B-Coding-max with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "roskosmos19/Orca-2-4B-Coding-max" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "roskosmos19/Orca-2-4B-Coding-max", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/roskosmos19/Orca-2-4B-Coding-max
- SGLang
How to use roskosmos19/Orca-2-4B-Coding-max 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 "roskosmos19/Orca-2-4B-Coding-max" \ --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": "roskosmos19/Orca-2-4B-Coding-max", "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 "roskosmos19/Orca-2-4B-Coding-max" \ --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": "roskosmos19/Orca-2-4B-Coding-max", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use roskosmos19/Orca-2-4B-Coding-max with Docker Model Runner:
docker model run hf.co/roskosmos19/Orca-2-4B-Coding-max
Commit History
26 days ago
-
Update README.md
Verified signaturefda30c8 -
Update README.md
Verified signature87856c7 -
Update README.md
Verified signaturea74c05c
-
Update README.md
Verified signature830b4e5
-
Update README.md
Verified signaturede94576 -
Update tokenizer_config.json
Verified signature1bfa4ea -
Update generation_config.json
Verified signature9056ae5 -
Update chat_template.jinja
Verified signature98b6c96 -
Update tokenizer_config.json
Verified signature1906874 -
Update chat_template.jinja
Verified signature907955e -
Update model.safetensors.index.json
Verified signature348b7c9 -
Update added_tokens.json
Verified signature38f284a -
Rename atheneamodel.png to rheamodel.png
Verified signature6918956 -
Update README.md
Verified signature0e65b0d -
Update chat_template.jinja
Verified signature68f1180 -
Update special_tokens_map.json
Verified signature1227828 -
Update tokenizer_config.json
Verified signature1041b11 -
Update generation_config.json
Verified signature57f4fd3 -
Update config.json
Verified signature158530a -
Update README.md
Verified signature9d360d3 -
Update README.md
Verified signaturedd7cb08 -
Rename atehneamodel.png to atheneamodel.png
Verified signaturec99a922 -
Delete atheneamodel.png
Verified signature6018fe4 -
Rename atehneamodell.png to atehneamodel.png
Verified signature2e90b49 -
Rename Gemini_Generated_Image_vtkzn8vtkzn8vtkz.png to atehneamodell.png
Verified signaturee10d79d -
Upload Gemini_Generated_Image_vtkzn8vtkzn8vtkz.png
Verified signature7a45bf8
-
Update README.md
Verified signature8580423 -
Update README.md
Verified signatureabb97b3 -
Update README.md
Verified signature4407fe3 -
Update .gitattributes
Verified signature8d26209 -
Delete preview_playground.png
Verified signature302e714 -
Update README.md
Verified signature48b2c69 -
Duplicate from Aquiles-ai/Athenea-4B-Coding
Co-authored-by: Fredy Rivera <Fredtt3@users.noreply.huggingface.co>da697a4