7B AWQ
Collection
These models are selected for their compatibility with small 12GB memory GPUs. • 203 items • Updated • 2
How to use solidrust/LewdMistral-7B-0.2-AWQ with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="solidrust/LewdMistral-7B-0.2-AWQ") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("solidrust/LewdMistral-7B-0.2-AWQ")
model = AutoModelForCausalLM.from_pretrained("solidrust/LewdMistral-7B-0.2-AWQ")How to use solidrust/LewdMistral-7B-0.2-AWQ with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "solidrust/LewdMistral-7B-0.2-AWQ"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "solidrust/LewdMistral-7B-0.2-AWQ",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/solidrust/LewdMistral-7B-0.2-AWQ
How to use solidrust/LewdMistral-7B-0.2-AWQ with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "solidrust/LewdMistral-7B-0.2-AWQ" \
--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": "solidrust/LewdMistral-7B-0.2-AWQ",
"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 "solidrust/LewdMistral-7B-0.2-AWQ" \
--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": "solidrust/LewdMistral-7B-0.2-AWQ",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use solidrust/LewdMistral-7B-0.2-AWQ with Docker Model Runner:
docker model run hf.co/solidrust/LewdMistral-7B-0.2-AWQ
It's a full finetune (on 2 epoch) of Mistral-7B-v0.2 based on multiple RP datasets.
It was made for being merged with old 0.1 model as an experiment to see if it would be possible to add new data from 0.2 into 0.1 finetunes, but since it's usable, I let is open for further train/merging.
It was used to create BigL, a model who take Mistral 0.2 7B as a base, but merged with Mistral 0.1 finetunes.
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{system prompt}
### Input:
{prompt}
### Response:
{output}
Base model
Undi95/LewdMistral-7B-0.2