Text Generation
Transformers
Safetensors
English
llama
Mixtral
instruct
finetune
chatml
DPO
RLHF
gpt4
synthetic data
distillation
conversational
text-generation-inference
Instructions to use pharaouk/fusedyi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pharaouk/fusedyi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pharaouk/fusedyi") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pharaouk/fusedyi") model = AutoModelForCausalLM.from_pretrained("pharaouk/fusedyi") 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 pharaouk/fusedyi with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pharaouk/fusedyi" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pharaouk/fusedyi", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pharaouk/fusedyi
- SGLang
How to use pharaouk/fusedyi 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 "pharaouk/fusedyi" \ --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": "pharaouk/fusedyi", "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 "pharaouk/fusedyi" \ --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": "pharaouk/fusedyi", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use pharaouk/fusedyi with Docker Model Runner:
docker model run hf.co/pharaouk/fusedyi
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
README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
tags:
|
| 3 |
- Mixtral
|
| 4 |
- instruct
|
|
@@ -12,9 +15,6 @@ tags:
|
|
| 12 |
model-index:
|
| 13 |
- name: fusedYi
|
| 14 |
results: []
|
| 15 |
-
license: apache-2.0
|
| 16 |
-
language:
|
| 17 |
-
- en
|
| 18 |
---
|
| 19 |
|
| 20 |
|
|
@@ -31,3 +31,17 @@ Yi-ceptionized.
|
|
| 31 |
|
| 32 |
1.9 x Yi-6B
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
tags:
|
| 6 |
- Mixtral
|
| 7 |
- instruct
|
|
|
|
| 15 |
model-index:
|
| 16 |
- name: fusedYi
|
| 17 |
results: []
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
|
|
|
|
| 31 |
|
| 32 |
1.9 x Yi-6B
|
| 33 |
|
| 34 |
+
|
| 35 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 36 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_pharaouk__fusedyi)
|
| 37 |
+
|
| 38 |
+
| Metric |Value|
|
| 39 |
+
|---------------------------------|----:|
|
| 40 |
+
|Avg. |53.18|
|
| 41 |
+
|AI2 Reasoning Challenge (25-Shot)|55.03|
|
| 42 |
+
|HellaSwag (10-Shot) |76.60|
|
| 43 |
+
|MMLU (5-Shot) |63.43|
|
| 44 |
+
|TruthfulQA (0-shot) |49.29|
|
| 45 |
+
|Winogrande (5-shot) |72.69|
|
| 46 |
+
|GSM8k (5-shot) | 2.05|
|
| 47 |
+
|