Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
text-generation-inference
Instructions to use Sumail/Eurus10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sumail/Eurus10 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sumail/Eurus10") 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("Sumail/Eurus10") model = AutoModelForCausalLM.from_pretrained("Sumail/Eurus10", 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 Sumail/Eurus10 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sumail/Eurus10" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sumail/Eurus10", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sumail/Eurus10
- SGLang
How to use Sumail/Eurus10 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 "Sumail/Eurus10" \ --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": "Sumail/Eurus10", "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 "Sumail/Eurus10" \ --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": "Sumail/Eurus10", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sumail/Eurus10 with Docker Model Runner:
docker model run hf.co/Sumail/Eurus10
Commit History
-
Upload folder using huggingface_hub
Verified signaturee151566
-
Upload folder using huggingface_hub
Verified signature8e5956c -
Upload folder using huggingface_hub
Verified signature3d6d272 -
Upload folder using huggingface_hub
Verified signaturec362aea -
Upload folder using huggingface_hub
Verified signature5f330ed -
Upload folder using huggingface_hub
Verified signature608f29c
-
Upload folder using huggingface_hub
Verified signature4635d28 -
Upload folder using huggingface_hub
Verified signaturec17b32f -
Upload folder using huggingface_hub
Verified signature4fff97a
-
Upload folder using huggingface_hub
Verified signature8424c81 -
Upload folder using huggingface_hub
Verified signature7cb870d -
Upload folder using huggingface_hub
Verified signaturea45f1c1 -
Upload folder using huggingface_hub
Verified signaturecc83421 -
Upload folder using huggingface_hub
Verified signature52d723e -
Upload folder using huggingface_hub
Verified signatureb9acf98 -
Upload folder using huggingface_hub
Verified signaturec5f0660
-
Upload folder using huggingface_hub
Verified signature42adbde
-
Upload folder using huggingface_hub
Verified signature1f0ee67 -
Upload folder using huggingface_hub
Verified signature400ca56 -
Upload folder using huggingface_hub
Verified signature6bb3af4 -
Upload folder using huggingface_hub
Verified signature052ee5b -
Upload folder using huggingface_hub
Verified signature2b59f26 -
Upload folder using huggingface_hub
Verified signature0ce5647
-
Upload folder using huggingface_hub
Verified signaturee8a318e -
Upload folder using huggingface_hub
Verified signature8dc341b -
Upload folder using huggingface_hub
Verified signatured67fe2b
-
Upload daily_life_if.pth
Verified signaturedabee67
-
Upload vehicle_if.pth
Verified signaturecee64cf
-
Upload folder using huggingface_hub
Verified signature613bc05 -
Upload folder using huggingface_hub
Verified signaturef8e8e7b
-
Upload folder using huggingface_hub
Verified signature6ea9161 -
initial commit
Verified signaturef28d683