Text Generation
Transformers
Safetensors
English
Arabic
qwen2
instruct
llm
secure
enterprise
on-premise
conversational
text-generation-inference
Instructions to use XCurOS/XCurOS0.1-8B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XCurOS/XCurOS0.1-8B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="XCurOS/XCurOS0.1-8B-Instruct") 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("XCurOS/XCurOS0.1-8B-Instruct") model = AutoModelForCausalLM.from_pretrained("XCurOS/XCurOS0.1-8B-Instruct", 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 XCurOS/XCurOS0.1-8B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XCurOS/XCurOS0.1-8B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XCurOS/XCurOS0.1-8B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/XCurOS/XCurOS0.1-8B-Instruct
- SGLang
How to use XCurOS/XCurOS0.1-8B-Instruct 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 "XCurOS/XCurOS0.1-8B-Instruct" \ --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": "XCurOS/XCurOS0.1-8B-Instruct", "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 "XCurOS/XCurOS0.1-8B-Instruct" \ --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": "XCurOS/XCurOS0.1-8B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use XCurOS/XCurOS0.1-8B-Instruct with Docker Model Runner:
docker model run hf.co/XCurOS/XCurOS0.1-8B-Instruct
XCurOS commited on
Update README.md
Browse files123451 unmodified lines5657585960616263646512 unmodified lines787980818283848586877 unmodified lines9596979899100101102103104105106107108109110111112113---license: otherlibrary_name: transformers51 unmodified linesXCurOS-0.1-8B-Instruct architecture provides:- Stable instruction alignment- Long-context processing- Efficient transformer-based reasoning- Flexible deployment from edge to cloud---12 unmodified lines**Model Name:** XCurOS-0.1-8B-Instruct**Organization:** XCurOS**Version:** 0.0.1**License:** All rights reserved, proprietary software**Instruction Tuned:** True**Secure OS Ready:** True**Intended Audience:** Enterprises, research labs, and private organizations---7 unmodified lines## License & UsageThis model is proprietary software.All rights are reserved by XCurOS.Unauthorized copying, redistribution, or usage is strictly prohibited.---## Contribution & SupportMaintained internally by XCurOS.For licensing or collaboration, contact the XCurOS team.---**Author:** 35H - (f13b696767b224479d7a06bffae9a0b62e38e2e2)12351 unmodified lines5556575859606162636412 unmodified lines777879808182838485867 unmodified lines949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132---license: otherlibrary_name: transformers51 unmodified linesXCurOS-0.1-8B-Instruct architecture provides:- Stable instruction alignment- Long-context processing- Efficient transformer-based reasoning- Flexible deployment from edge to cloud---12 unmodified lines**Model Name:** XCurOS-0.1-8B-Instruct**Organization:** XCurOS**Version:** 0.0.1**License:** Proprietary software, all rights reserved**Instruction Tuned:** True**Secure OS Ready:** True**Intended Audience:** Enterprises, research labs, private users---7 unmodified lines## License & UsageThis model is proprietary software owned by **XCurOS**.### Personal UseThe model may be used **for personal and research purposes only** when deployed on a **private server or local infrastructure**.Personal use includes:- Local experimentation- Research and learning- Non-commercial private projects### Commercial Use**Commercial use is NOT permitted without an official license.**Any commercial activity including but not limited to:- Selling services powered by the model- Integrating the model into commercial products- SaaS platforms- Enterprise deployments for profit**Requires a separate commercial license from the XCurOS Team.**For commercial licensing inquiries, please contact the **XCurOS Team**.### RestrictionsUnauthorized redistribution, resale, or commercial usage of the model is strictly prohibited without written permission from **XCurOS**.---## Contribution & SupportMaintained internally by **XCurOS**.For licensing, collaboration, or support, contact the **XCurOS Team**.---**Author:** XCurOS-Team (f13b696767b224479d7a06bffae9a0b62e38e2e2)
README.md+32-13