Instructions to use senseable/WestLake-7B-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use senseable/WestLake-7B-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="senseable/WestLake-7B-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("senseable/WestLake-7B-v2") model = AutoModelForCausalLM.from_pretrained("senseable/WestLake-7B-v2") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use senseable/WestLake-7B-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "senseable/WestLake-7B-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "senseable/WestLake-7B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/senseable/WestLake-7B-v2
- SGLang
How to use senseable/WestLake-7B-v2 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 "senseable/WestLake-7B-v2" \ --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": "senseable/WestLake-7B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "senseable/WestLake-7B-v2" \ --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": "senseable/WestLake-7B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use senseable/WestLake-7B-v2 with Docker Model Runner:
docker model run hf.co/senseable/WestLake-7B-v2
EQ-Bench score
Hi, I just benchmarked your model with EQ-Bench and got 79.75, which is a hair below Megadolphin, the current open source leader. Would love to get a peek at the dataset you're training on. It's very impressive for a 7b model.
Great but hey didn't see it on your leaderboard.
I wasn't aware of this testing, you've been doing this for a while.
TheBloke/koala-7B-HF was literally the first model TheBloke learned GPTQ on.
Only since december last year, but I guess time moves fast here. I tested a bunch of older models to round out the lower end of the leaderboard.
Re: adding it to the leaderboard. I'm a bit cautious with new models that overperform, so was going to wait for more info on the training set.
Or, if you aren't planning to release the dataset, I might ask /u/WolframRavenwolf to put it through its paces.
Understood, I would like to clarify that the training methodology I employ is proprietary at this time until a wall is reach at which time I'm planning a white paper. Thanks for the letting me know about the EQ benchmark, I'm running it against v3 now.
Fair enough! I'll be interested to see the v3 score.
That's a pretty insane score!
To split hairs, it's more testing the ability to predict emotional responses. So, more like "how will Samantha feel after this dialogue", as opposed to "identify the emotions Samantha expressed in this dialogue". The former is a lot harder for language models than the latter.
When will v3 be released?
I'm also curious how v3 is coming along! Also the white paper for your training methodology.
Sam, I actually made v3 quite a while back and it's EQ score is much higher but a company paid for it's exclusive rights.
Sam, I actually made v3 quite a while back and it's EQ score is much higher but a company paid for it's exclusive rights.
Congrats! Also, boo.
its so over
