Saily_
Collection
These models are experimental. Most of them are uncensored. Please use with responsibility. • 4 items • Updated • 1
How to use deepnight-research/saily_100b with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="deepnight-research/saily_100b") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("deepnight-research/saily_100b")
model = AutoModelForCausalLM.from_pretrained("deepnight-research/saily_100b")How to use deepnight-research/saily_100b with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "deepnight-research/saily_100b"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "deepnight-research/saily_100b",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/deepnight-research/saily_100b
How to use deepnight-research/saily_100b with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "deepnight-research/saily_100b" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "deepnight-research/saily_100b",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "deepnight-research/saily_100b" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "deepnight-research/saily_100b",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use deepnight-research/saily_100b with Docker Model Runner:
docker model run hf.co/deepnight-research/saily_100b
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{prompt}
### Response:
This is the first stable model of the series. The model is based on Llama2-chat.
Here you go!
import transformers
model = transformers.AutoModelForCausalLM.from_pretrained(
'deepnight-research/saily_100B'
)
To use the optimized triton implementation of FlashAttention, you can load the model on GPU (cuda:0) with attn_impl='triton' and with bfloat16 precision:
import torch
import transformers
name = 'deepnight-research/saily_100B'
config = transformers.AutoConfig.from_pretrained(name)
config.attn_config['attn_impl'] = 'triton'
config.init_device = 'cuda:0' # For fast initialization directly on GPU!
model = transformers.AutoModelForCausalLM.from_pretrained(
name,
config=config,
torch_dtype=torch.bfloat16, # Load model weights in bfloat16
trust_remote_code=True
)
If you would like to support us, please consider donating for #aiforcause.
Cheers✌️