Instructions to use uukuguy/speechless-zephyr-code-functionary-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use uukuguy/speechless-zephyr-code-functionary-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="uukuguy/speechless-zephyr-code-functionary-7b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("uukuguy/speechless-zephyr-code-functionary-7b") model = AutoModelForCausalLM.from_pretrained("uukuguy/speechless-zephyr-code-functionary-7b") - llama-cpp-python
How to use uukuguy/speechless-zephyr-code-functionary-7b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="uukuguy/speechless-zephyr-code-functionary-7b", filename="GGUF/speechless-zephyr-code-functionary-7b.Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use uukuguy/speechless-zephyr-code-functionary-7b with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M # Run inference directly in the terminal: llama-cli -hf uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M # Run inference directly in the terminal: llama-cli -hf uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
Use Docker
docker model run hf.co/uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use uukuguy/speechless-zephyr-code-functionary-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "uukuguy/speechless-zephyr-code-functionary-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "uukuguy/speechless-zephyr-code-functionary-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
- SGLang
How to use uukuguy/speechless-zephyr-code-functionary-7b 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 "uukuguy/speechless-zephyr-code-functionary-7b" \ --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": "uukuguy/speechless-zephyr-code-functionary-7b", "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 "uukuguy/speechless-zephyr-code-functionary-7b" \ --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": "uukuguy/speechless-zephyr-code-functionary-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use uukuguy/speechless-zephyr-code-functionary-7b with Ollama:
ollama run hf.co/uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
- Unsloth Studio new
How to use uukuguy/speechless-zephyr-code-functionary-7b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for uukuguy/speechless-zephyr-code-functionary-7b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for uukuguy/speechless-zephyr-code-functionary-7b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for uukuguy/speechless-zephyr-code-functionary-7b to start chatting
- Docker Model Runner
How to use uukuguy/speechless-zephyr-code-functionary-7b with Docker Model Runner:
docker model run hf.co/uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
- Lemonade
How to use uukuguy/speechless-zephyr-code-functionary-7b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull uukuguy/speechless-zephyr-code-functionary-7b:Q4_K_M
Run and chat with the model
lemonade run user.speechless-zephyr-code-functionary-7b-Q4_K_M
List all available models
lemonade list
Adding Evaluation Results
Browse filesThis is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr
The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card.
If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussions
|
@@ -1,9 +1,112 @@
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- en
|
|
|
|
| 4 |
library_name: transformers
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
<p><h1> speechless-zephyr-code-functionary-7b </h1></p>
|
|
@@ -38,3 +141,17 @@ Code: https://github.com/uukuguy/multi_loras
|
|
| 38 |
| GSM8K | 43.82 |
|
| 39 |
| Average | 62.93 |
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
library_name: transformers
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
+
model-index:
|
| 8 |
+
- name: speechless-zephyr-code-functionary-7b
|
| 9 |
+
results:
|
| 10 |
+
- task:
|
| 11 |
+
type: text-generation
|
| 12 |
+
name: Text Generation
|
| 13 |
+
dataset:
|
| 14 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
| 15 |
+
type: ai2_arc
|
| 16 |
+
config: ARC-Challenge
|
| 17 |
+
split: test
|
| 18 |
+
args:
|
| 19 |
+
num_few_shot: 25
|
| 20 |
+
metrics:
|
| 21 |
+
- type: acc_norm
|
| 22 |
+
value: 61.52
|
| 23 |
+
name: normalized accuracy
|
| 24 |
+
source:
|
| 25 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=uukuguy/speechless-zephyr-code-functionary-7b
|
| 26 |
+
name: Open LLM Leaderboard
|
| 27 |
+
- task:
|
| 28 |
+
type: text-generation
|
| 29 |
+
name: Text Generation
|
| 30 |
+
dataset:
|
| 31 |
+
name: HellaSwag (10-Shot)
|
| 32 |
+
type: hellaswag
|
| 33 |
+
split: validation
|
| 34 |
+
args:
|
| 35 |
+
num_few_shot: 10
|
| 36 |
+
metrics:
|
| 37 |
+
- type: acc_norm
|
| 38 |
+
value: 83.88
|
| 39 |
+
name: normalized accuracy
|
| 40 |
+
source:
|
| 41 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=uukuguy/speechless-zephyr-code-functionary-7b
|
| 42 |
+
name: Open LLM Leaderboard
|
| 43 |
+
- task:
|
| 44 |
+
type: text-generation
|
| 45 |
+
name: Text Generation
|
| 46 |
+
dataset:
|
| 47 |
+
name: MMLU (5-Shot)
|
| 48 |
+
type: cais/mmlu
|
| 49 |
+
config: all
|
| 50 |
+
split: test
|
| 51 |
+
args:
|
| 52 |
+
num_few_shot: 5
|
| 53 |
+
metrics:
|
| 54 |
+
- type: acc
|
| 55 |
+
value: 64.71
|
| 56 |
+
name: accuracy
|
| 57 |
+
source:
|
| 58 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=uukuguy/speechless-zephyr-code-functionary-7b
|
| 59 |
+
name: Open LLM Leaderboard
|
| 60 |
+
- task:
|
| 61 |
+
type: text-generation
|
| 62 |
+
name: Text Generation
|
| 63 |
+
dataset:
|
| 64 |
+
name: TruthfulQA (0-shot)
|
| 65 |
+
type: truthful_qa
|
| 66 |
+
config: multiple_choice
|
| 67 |
+
split: validation
|
| 68 |
+
args:
|
| 69 |
+
num_few_shot: 0
|
| 70 |
+
metrics:
|
| 71 |
+
- type: mc2
|
| 72 |
+
value: 44.99
|
| 73 |
+
source:
|
| 74 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=uukuguy/speechless-zephyr-code-functionary-7b
|
| 75 |
+
name: Open LLM Leaderboard
|
| 76 |
+
- task:
|
| 77 |
+
type: text-generation
|
| 78 |
+
name: Text Generation
|
| 79 |
+
dataset:
|
| 80 |
+
name: Winogrande (5-shot)
|
| 81 |
+
type: winogrande
|
| 82 |
+
config: winogrande_xl
|
| 83 |
+
split: validation
|
| 84 |
+
args:
|
| 85 |
+
num_few_shot: 5
|
| 86 |
+
metrics:
|
| 87 |
+
- type: acc
|
| 88 |
+
value: 78.69
|
| 89 |
+
name: accuracy
|
| 90 |
+
source:
|
| 91 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=uukuguy/speechless-zephyr-code-functionary-7b
|
| 92 |
+
name: Open LLM Leaderboard
|
| 93 |
+
- task:
|
| 94 |
+
type: text-generation
|
| 95 |
+
name: Text Generation
|
| 96 |
+
dataset:
|
| 97 |
+
name: GSM8k (5-shot)
|
| 98 |
+
type: gsm8k
|
| 99 |
+
config: main
|
| 100 |
+
split: test
|
| 101 |
+
args:
|
| 102 |
+
num_few_shot: 5
|
| 103 |
+
metrics:
|
| 104 |
+
- type: acc
|
| 105 |
+
value: 43.82
|
| 106 |
+
name: accuracy
|
| 107 |
+
source:
|
| 108 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=uukuguy/speechless-zephyr-code-functionary-7b
|
| 109 |
+
name: Open LLM Leaderboard
|
| 110 |
---
|
| 111 |
|
| 112 |
<p><h1> speechless-zephyr-code-functionary-7b </h1></p>
|
|
|
|
| 141 |
| GSM8K | 43.82 |
|
| 142 |
| Average | 62.93 |
|
| 143 |
|
| 144 |
+
|
| 145 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 146 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_uukuguy__speechless-zephyr-code-functionary-7b)
|
| 147 |
+
|
| 148 |
+
| Metric |Value|
|
| 149 |
+
|---------------------------------|----:|
|
| 150 |
+
|Avg. |62.93|
|
| 151 |
+
|AI2 Reasoning Challenge (25-Shot)|61.52|
|
| 152 |
+
|HellaSwag (10-Shot) |83.88|
|
| 153 |
+
|MMLU (5-Shot) |64.71|
|
| 154 |
+
|TruthfulQA (0-shot) |44.99|
|
| 155 |
+
|Winogrande (5-shot) |78.69|
|
| 156 |
+
|GSM8k (5-shot) |43.82|
|
| 157 |
+
|