Text Generation
Transformers
Safetensors
llama
ghost
tools
chat
unsloth
conversational
text-generation-inference
Instructions to use ghost-x/ghost-8b-beta-1608 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ghost-x/ghost-8b-beta-1608 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ghost-x/ghost-8b-beta-1608") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ghost-x/ghost-8b-beta-1608") model = AutoModelForCausalLM.from_pretrained("ghost-x/ghost-8b-beta-1608") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ghost-x/ghost-8b-beta-1608 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ghost-x/ghost-8b-beta-1608" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ghost-x/ghost-8b-beta-1608", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ghost-x/ghost-8b-beta-1608
- SGLang
How to use ghost-x/ghost-8b-beta-1608 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 "ghost-x/ghost-8b-beta-1608" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ghost-x/ghost-8b-beta-1608", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "ghost-x/ghost-8b-beta-1608" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ghost-x/ghost-8b-beta-1608", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use ghost-x/ghost-8b-beta-1608 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 ghost-x/ghost-8b-beta-1608 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 ghost-x/ghost-8b-beta-1608 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ghost-x/ghost-8b-beta-1608 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="ghost-x/ghost-8b-beta-1608", max_seq_length=2048, ) - Docker Model Runner
How to use ghost-x/ghost-8b-beta-1608 with Docker Model Runner:
docker model run hf.co/ghost-x/ghost-8b-beta-1608
Adding Evaluation Results
#4
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,35 +1,130 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: ghost-x/ghost-8b-beta
|
| 3 |
language:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
license: other
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
license_name: ghost-open-llms
|
| 22 |
license_link: https://ghost-x.org/ghost-open-llms-license
|
| 23 |
-
tags:
|
| 24 |
-
- ghost
|
| 25 |
-
- tools
|
| 26 |
-
- chat
|
| 27 |
-
- transformers
|
| 28 |
-
- unsloth
|
| 29 |
-
- llama
|
| 30 |
pipeline_tag: text-generation
|
| 31 |
widget:
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
---
|
| 34 |
|
| 35 |
<p><img src="https://ghost-x.org/docs/models/ghost-8b-beta/images/logo.jpeg" width="40%" align="center" /></p>
|
|
@@ -830,3 +925,17 @@ If you find our work helpful, feel free to give us a cite.
|
|
| 830 |
year = {2024}
|
| 831 |
}
|
| 832 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
+
- vi
|
| 4 |
+
- ko
|
| 5 |
+
- es
|
| 6 |
+
- pt
|
| 7 |
+
- zh
|
| 8 |
+
- fr
|
| 9 |
+
- it
|
| 10 |
+
- de
|
| 11 |
+
- ja
|
| 12 |
+
- ru
|
| 13 |
+
- pl
|
| 14 |
+
- nl
|
| 15 |
+
- hi
|
| 16 |
+
- tr
|
| 17 |
+
- id
|
| 18 |
+
- en
|
| 19 |
license: other
|
| 20 |
+
tags:
|
| 21 |
+
- ghost
|
| 22 |
+
- tools
|
| 23 |
+
- chat
|
| 24 |
+
- transformers
|
| 25 |
+
- unsloth
|
| 26 |
+
- llama
|
| 27 |
+
base_model: ghost-x/ghost-8b-beta
|
| 28 |
license_name: ghost-open-llms
|
| 29 |
license_link: https://ghost-x.org/ghost-open-llms-license
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
pipeline_tag: text-generation
|
| 31 |
widget:
|
| 32 |
+
- text: Why is the sky blue ?
|
| 33 |
+
model-index:
|
| 34 |
+
- name: ghost-8b-beta-1608
|
| 35 |
+
results:
|
| 36 |
+
- task:
|
| 37 |
+
type: text-generation
|
| 38 |
+
name: Text Generation
|
| 39 |
+
dataset:
|
| 40 |
+
name: IFEval (0-Shot)
|
| 41 |
+
type: HuggingFaceH4/ifeval
|
| 42 |
+
args:
|
| 43 |
+
num_few_shot: 0
|
| 44 |
+
metrics:
|
| 45 |
+
- type: inst_level_strict_acc and prompt_level_strict_acc
|
| 46 |
+
value: 42.73
|
| 47 |
+
name: strict accuracy
|
| 48 |
+
source:
|
| 49 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=ghost-x/ghost-8b-beta-1608
|
| 50 |
+
name: Open LLM Leaderboard
|
| 51 |
+
- task:
|
| 52 |
+
type: text-generation
|
| 53 |
+
name: Text Generation
|
| 54 |
+
dataset:
|
| 55 |
+
name: BBH (3-Shot)
|
| 56 |
+
type: BBH
|
| 57 |
+
args:
|
| 58 |
+
num_few_shot: 3
|
| 59 |
+
metrics:
|
| 60 |
+
- type: acc_norm
|
| 61 |
+
value: 23.46
|
| 62 |
+
name: normalized accuracy
|
| 63 |
+
source:
|
| 64 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=ghost-x/ghost-8b-beta-1608
|
| 65 |
+
name: Open LLM Leaderboard
|
| 66 |
+
- task:
|
| 67 |
+
type: text-generation
|
| 68 |
+
name: Text Generation
|
| 69 |
+
dataset:
|
| 70 |
+
name: MATH Lvl 5 (4-Shot)
|
| 71 |
+
type: hendrycks/competition_math
|
| 72 |
+
args:
|
| 73 |
+
num_few_shot: 4
|
| 74 |
+
metrics:
|
| 75 |
+
- type: exact_match
|
| 76 |
+
value: 1.21
|
| 77 |
+
name: exact match
|
| 78 |
+
source:
|
| 79 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=ghost-x/ghost-8b-beta-1608
|
| 80 |
+
name: Open LLM Leaderboard
|
| 81 |
+
- task:
|
| 82 |
+
type: text-generation
|
| 83 |
+
name: Text Generation
|
| 84 |
+
dataset:
|
| 85 |
+
name: GPQA (0-shot)
|
| 86 |
+
type: Idavidrein/gpqa
|
| 87 |
+
args:
|
| 88 |
+
num_few_shot: 0
|
| 89 |
+
metrics:
|
| 90 |
+
- type: acc_norm
|
| 91 |
+
value: 1.12
|
| 92 |
+
name: acc_norm
|
| 93 |
+
source:
|
| 94 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=ghost-x/ghost-8b-beta-1608
|
| 95 |
+
name: Open LLM Leaderboard
|
| 96 |
+
- task:
|
| 97 |
+
type: text-generation
|
| 98 |
+
name: Text Generation
|
| 99 |
+
dataset:
|
| 100 |
+
name: MuSR (0-shot)
|
| 101 |
+
type: TAUR-Lab/MuSR
|
| 102 |
+
args:
|
| 103 |
+
num_few_shot: 0
|
| 104 |
+
metrics:
|
| 105 |
+
- type: acc_norm
|
| 106 |
+
value: 1.58
|
| 107 |
+
name: acc_norm
|
| 108 |
+
source:
|
| 109 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=ghost-x/ghost-8b-beta-1608
|
| 110 |
+
name: Open LLM Leaderboard
|
| 111 |
+
- task:
|
| 112 |
+
type: text-generation
|
| 113 |
+
name: Text Generation
|
| 114 |
+
dataset:
|
| 115 |
+
name: MMLU-PRO (5-shot)
|
| 116 |
+
type: TIGER-Lab/MMLU-Pro
|
| 117 |
+
config: main
|
| 118 |
+
split: test
|
| 119 |
+
args:
|
| 120 |
+
num_few_shot: 5
|
| 121 |
+
metrics:
|
| 122 |
+
- type: acc
|
| 123 |
+
value: 20.44
|
| 124 |
+
name: accuracy
|
| 125 |
+
source:
|
| 126 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=ghost-x/ghost-8b-beta-1608
|
| 127 |
+
name: Open LLM Leaderboard
|
| 128 |
---
|
| 129 |
|
| 130 |
<p><img src="https://ghost-x.org/docs/models/ghost-8b-beta/images/logo.jpeg" width="40%" align="center" /></p>
|
|
|
|
| 925 |
year = {2024}
|
| 926 |
}
|
| 927 |
```
|
| 928 |
+
|
| 929 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
|
| 930 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_ghost-x__ghost-8b-beta-1608)
|
| 931 |
+
|
| 932 |
+
| Metric |Value|
|
| 933 |
+
|-------------------|----:|
|
| 934 |
+
|Avg. |15.09|
|
| 935 |
+
|IFEval (0-Shot) |42.73|
|
| 936 |
+
|BBH (3-Shot) |23.46|
|
| 937 |
+
|MATH Lvl 5 (4-Shot)| 1.21|
|
| 938 |
+
|GPQA (0-shot) | 1.12|
|
| 939 |
+
|MuSR (0-shot) | 1.58|
|
| 940 |
+
|MMLU-PRO (5-shot) |20.44|
|
| 941 |
+
|