iDUS
Collection
4 items β’ Updated
How to use Cartinoe5930/Llama2_init_Mistral with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Cartinoe5930/Llama2_init_Mistral") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Cartinoe5930/Llama2_init_Mistral")
model = AutoModelForCausalLM.from_pretrained("Cartinoe5930/Llama2_init_Mistral")How to use Cartinoe5930/Llama2_init_Mistral with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Cartinoe5930/Llama2_init_Mistral"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Cartinoe5930/Llama2_init_Mistral",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Cartinoe5930/Llama2_init_Mistral
How to use Cartinoe5930/Llama2_init_Mistral with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Cartinoe5930/Llama2_init_Mistral" \
--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": "Cartinoe5930/Llama2_init_Mistral",
"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 "Cartinoe5930/Llama2_init_Mistral" \
--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": "Cartinoe5930/Llama2_init_Mistral",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Cartinoe5930/Llama2_init_Mistral with Docker Model Runner:
docker model run hf.co/Cartinoe5930/Llama2_init_Mistral
This model is the base model implementation of SOLAR-10.7B. The architecture of base model is Llama2 architecture and initialized with weights of Mistral.
Please check specific details in the GitHub Repository.
GitHub Repository: https://github.com/gauss5930/iDUS
| Model | ARC | HellaSwag | MMLU | TruthfulQA | Winogrande | GSM8K | Average |
|---|---|---|---|---|---|---|---|
| Llama2_init_Mistral | 60.07 | 83.3 | 64.09 | 42.15 | 78.37 | 37.91 | 60.98 |