Text Generation
Transformers
PyTorch
mistral
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use steve-cse/MelloGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use steve-cse/MelloGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="steve-cse/MelloGPT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("steve-cse/MelloGPT") model = AutoModelForCausalLM.from_pretrained("steve-cse/MelloGPT") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use steve-cse/MelloGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "steve-cse/MelloGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "steve-cse/MelloGPT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/steve-cse/MelloGPT
- SGLang
How to use steve-cse/MelloGPT 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 "steve-cse/MelloGPT" \ --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": "steve-cse/MelloGPT", "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 "steve-cse/MelloGPT" \ --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": "steve-cse/MelloGPT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use steve-cse/MelloGPT with Docker Model Runner:
docker model run hf.co/steve-cse/MelloGPT
Adding Evaluation Results
#3
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -2,6 +2,109 @@
|
|
| 2 |
license: mit
|
| 3 |
datasets:
|
| 4 |
- nbertagnolli/counsel-chat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
# MelloGPT
|
| 7 |
<p align="center">
|
|
@@ -40,4 +143,17 @@ This project was inspired by the project(s) listed below:
|
|
| 40 |
## Credits
|
| 41 |
This is my first attempt at fine-tuning a large language model. It wouldn't be possible without [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) and [Runpod](runpod.io). The axolotl config file can be found [here](https://github.com/steve-cse/mello/blob/master/mello.yml).
|
| 42 |
|
| 43 |
-
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: mit
|
| 3 |
datasets:
|
| 4 |
- nbertagnolli/counsel-chat
|
| 5 |
+
model-index:
|
| 6 |
+
- name: MelloGPT
|
| 7 |
+
results:
|
| 8 |
+
- task:
|
| 9 |
+
type: text-generation
|
| 10 |
+
name: Text Generation
|
| 11 |
+
dataset:
|
| 12 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
| 13 |
+
type: ai2_arc
|
| 14 |
+
config: ARC-Challenge
|
| 15 |
+
split: test
|
| 16 |
+
args:
|
| 17 |
+
num_few_shot: 25
|
| 18 |
+
metrics:
|
| 19 |
+
- type: acc_norm
|
| 20 |
+
value: 53.84
|
| 21 |
+
name: normalized accuracy
|
| 22 |
+
source:
|
| 23 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=steve-cse/MelloGPT
|
| 24 |
+
name: Open LLM Leaderboard
|
| 25 |
+
- task:
|
| 26 |
+
type: text-generation
|
| 27 |
+
name: Text Generation
|
| 28 |
+
dataset:
|
| 29 |
+
name: HellaSwag (10-Shot)
|
| 30 |
+
type: hellaswag
|
| 31 |
+
split: validation
|
| 32 |
+
args:
|
| 33 |
+
num_few_shot: 10
|
| 34 |
+
metrics:
|
| 35 |
+
- type: acc_norm
|
| 36 |
+
value: 76.12
|
| 37 |
+
name: normalized accuracy
|
| 38 |
+
source:
|
| 39 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=steve-cse/MelloGPT
|
| 40 |
+
name: Open LLM Leaderboard
|
| 41 |
+
- task:
|
| 42 |
+
type: text-generation
|
| 43 |
+
name: Text Generation
|
| 44 |
+
dataset:
|
| 45 |
+
name: MMLU (5-Shot)
|
| 46 |
+
type: cais/mmlu
|
| 47 |
+
config: all
|
| 48 |
+
split: test
|
| 49 |
+
args:
|
| 50 |
+
num_few_shot: 5
|
| 51 |
+
metrics:
|
| 52 |
+
- type: acc
|
| 53 |
+
value: 55.99
|
| 54 |
+
name: accuracy
|
| 55 |
+
source:
|
| 56 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=steve-cse/MelloGPT
|
| 57 |
+
name: Open LLM Leaderboard
|
| 58 |
+
- task:
|
| 59 |
+
type: text-generation
|
| 60 |
+
name: Text Generation
|
| 61 |
+
dataset:
|
| 62 |
+
name: TruthfulQA (0-shot)
|
| 63 |
+
type: truthful_qa
|
| 64 |
+
config: multiple_choice
|
| 65 |
+
split: validation
|
| 66 |
+
args:
|
| 67 |
+
num_few_shot: 0
|
| 68 |
+
metrics:
|
| 69 |
+
- type: mc2
|
| 70 |
+
value: 55.61
|
| 71 |
+
source:
|
| 72 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=steve-cse/MelloGPT
|
| 73 |
+
name: Open LLM Leaderboard
|
| 74 |
+
- task:
|
| 75 |
+
type: text-generation
|
| 76 |
+
name: Text Generation
|
| 77 |
+
dataset:
|
| 78 |
+
name: Winogrande (5-shot)
|
| 79 |
+
type: winogrande
|
| 80 |
+
config: winogrande_xl
|
| 81 |
+
split: validation
|
| 82 |
+
args:
|
| 83 |
+
num_few_shot: 5
|
| 84 |
+
metrics:
|
| 85 |
+
- type: acc
|
| 86 |
+
value: 73.88
|
| 87 |
+
name: accuracy
|
| 88 |
+
source:
|
| 89 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=steve-cse/MelloGPT
|
| 90 |
+
name: Open LLM Leaderboard
|
| 91 |
+
- task:
|
| 92 |
+
type: text-generation
|
| 93 |
+
name: Text Generation
|
| 94 |
+
dataset:
|
| 95 |
+
name: GSM8k (5-shot)
|
| 96 |
+
type: gsm8k
|
| 97 |
+
config: main
|
| 98 |
+
split: test
|
| 99 |
+
args:
|
| 100 |
+
num_few_shot: 5
|
| 101 |
+
metrics:
|
| 102 |
+
- type: acc
|
| 103 |
+
value: 30.1
|
| 104 |
+
name: accuracy
|
| 105 |
+
source:
|
| 106 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=steve-cse/MelloGPT
|
| 107 |
+
name: Open LLM Leaderboard
|
| 108 |
---
|
| 109 |
# MelloGPT
|
| 110 |
<p align="center">
|
|
|
|
| 143 |
## Credits
|
| 144 |
This is my first attempt at fine-tuning a large language model. It wouldn't be possible without [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) and [Runpod](runpod.io). The axolotl config file can be found [here](https://github.com/steve-cse/mello/blob/master/mello.yml).
|
| 145 |
|
| 146 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
| 147 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 148 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_steve-cse__MelloGPT)
|
| 149 |
+
|
| 150 |
+
| Metric |Value|
|
| 151 |
+
|---------------------------------|----:|
|
| 152 |
+
|Avg. |57.59|
|
| 153 |
+
|AI2 Reasoning Challenge (25-Shot)|53.84|
|
| 154 |
+
|HellaSwag (10-Shot) |76.12|
|
| 155 |
+
|MMLU (5-Shot) |55.99|
|
| 156 |
+
|TruthfulQA (0-shot) |55.61|
|
| 157 |
+
|Winogrande (5-shot) |73.88|
|
| 158 |
+
|GSM8k (5-shot) |30.10|
|
| 159 |
+
|