Instructions to use RobertML/sn6e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RobertML/sn6e with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RobertML/sn6e") 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("RobertML/sn6e") model = AutoModelForCausalLM.from_pretrained("RobertML/sn6e", 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 RobertML/sn6e with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RobertML/sn6e" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RobertML/sn6e", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RobertML/sn6e
- SGLang
How to use RobertML/sn6e 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 "RobertML/sn6e" \ --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": "RobertML/sn6e", "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 "RobertML/sn6e" \ --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": "RobertML/sn6e", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RobertML/sn6e with Docker Model Runner:
docker model run hf.co/RobertML/sn6e
Commit History
-
Upload StableLmForCausalLM
Verified signature5665276 -
Upload tokenizer
Verified signature6c81d6b -
Upload StableLmForCausalLM
Verified signatureaf0ba3e -
Upload tokenizer
Verified signaturedb7a923 -
Upload StableLmForCausalLM
Verified signatureadea483 -
Upload tokenizer
Verified signature260a94b -
Upload StableLmForCausalLM
Verified signature9b05387 -
Upload tokenizer
Verified signature1cbf110 -
Upload StableLmForCausalLM
Verified signature91af000 -
Upload tokenizer
Verified signature05e7986 -
Upload StableLmForCausalLM
Verified signaturee6d5726 -
Upload tokenizer
Verified signaturea3fbf0e
-
Upload StableLmForCausalLM
Verified signaturee4f8252 -
Upload tokenizer
Verified signature1b910d1 -
Upload StableLmForCausalLM
Verified signature50712a6 -
Upload tokenizer
Verified signatured03c1d3 -
Upload StableLmForCausalLM
Verified signature65d2abc -
Upload tokenizer
Verified signature150641a -
Upload StableLmForCausalLM
Verified signature80c76dd -
Upload tokenizer
Verified signature13bdff0 -
Upload tokenizer
Verified signaturec26608c -
Upload StableLmForCausalLM
Verified signature3563718 -
Upload tokenizer
Verified signature07201f2 -
Upload StableLmForCausalLM
Verified signature5a50410 -
Upload tokenizer
Verified signaturea836075 -
Upload StableLmForCausalLM
Verified signature93cc861 -
Upload tokenizer
Verified signature6707487 -
Upload StableLmForCausalLM
Verified signature732931b -
Upload tokenizer
Verified signaturebf37e5d -
Upload StableLmForCausalLM
Verified signature73942d8 -
Upload tokenizer
Verified signaturea45bf77 -
Upload tokenizer
Verified signature499059c -
Upload StableLmForCausalLM
Verified signature39d65fd -
Upload tokenizer
Verified signatureecb37bf -
Upload StableLmForCausalLM
Verified signature183e555 -
Upload tokenizer
Verified signature8dad43e -
Upload StableLmForCausalLM
Verified signature2c0fc63 -
Upload tokenizer
Verified signaturea23e8da
-
Upload StableLmForCausalLM
Verified signature8254299 -
Upload tokenizer
Verified signature65737b9
-
Upload StableLmForCausalLM
Verified signature133cd5d -
Upload tokenizer
Verified signature11e4184
-
Upload StableLmForCausalLM
Verified signature7917294 -
Upload tokenizer
Verified signaturef16fcee
-
Upload StableLmForCausalLM
Verified signature8c605a0 -
Upload tokenizer
Verified signature287bc40
-
Upload StableLmForCausalLM
Verified signature39e6035 -
Upload tokenizer
Verified signature938f3c0
-
Upload StableLmForCausalLM
Verified signature21d880f -
Upload tokenizer
Verified signature980793d