Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| Faro-Yi-9B.Q2_K.gguf | Q2_K | 3.12GB |
| Faro-Yi-9B.IQ3_XS.gguf | IQ3_XS | 3.46GB |
| Faro-Yi-9B.IQ3_S.gguf | IQ3_S | 3.64GB |
| Faro-Yi-9B.Q3_K_S.gguf | Q3_K_S | 3.63GB |
| Faro-Yi-9B.IQ3_M.gguf | IQ3_M | 3.78GB |
| Faro-Yi-9B.Q3_K.gguf | Q3_K | 4.03GB |
| Faro-Yi-9B.Q3_K_M.gguf | Q3_K_M | 4.03GB |
| Faro-Yi-9B.Q3_K_L.gguf | Q3_K_L | 4.37GB |
| Faro-Yi-9B.IQ4_XS.gguf | IQ4_XS | 4.5GB |
| Faro-Yi-9B.Q4_0.gguf | Q4_0 | 4.69GB |
| Faro-Yi-9B.IQ4_NL.gguf | IQ4_NL | 4.73GB |
| Faro-Yi-9B.Q4_K_S.gguf | Q4_K_S | 4.72GB |
| Faro-Yi-9B.Q4_K.gguf | Q4_K | 4.96GB |
| Faro-Yi-9B.Q4_K_M.gguf | Q4_K_M | 4.96GB |
| Faro-Yi-9B.Q4_1.gguf | Q4_1 | 5.19GB |
| Faro-Yi-9B.Q5_0.gguf | Q5_0 | 5.69GB |
| Faro-Yi-9B.Q5_K_S.gguf | Q5_K_S | 5.69GB |
| Faro-Yi-9B.Q5_K.gguf | Q5_K | 5.83GB |
| Faro-Yi-9B.Q5_K_M.gguf | Q5_K_M | 5.83GB |
| Faro-Yi-9B.Q5_1.gguf | Q5_1 | 6.19GB |
| Faro-Yi-9B.Q6_K.gguf | Q6_K | 6.75GB |

kv_cache_dtype="fp8_e5m2" allows for 48K input length. 4bit-AWQ quantization on top of that can boost input length to 160K, albeit with some performance impact. Adjust max_model_len arg in vLLM or config.json to avoid OOM.1import io
2import requests
3from PyPDF2 import PdfReader
4from vllm import LLM, SamplingParams
5
6llm = LLM(model="wenbopan/Faro-Yi-9B", kv_cache_dtype="fp8_e5m2", max_model_len=100000)
7
8pdf_data = io.BytesIO(requests.get("https://arxiv.org/pdf/2303.08774.pdf").content)
9document = "".join(page.extract_text() for page in PdfReader(pdf_data).pages) # 100 pages
10
11question = f"{document}\n\nAccording to the paper, what is the parameter count of GPT-4?"
12messages = [ {"role": "user", "content": question} ] # 83K tokens
13prompt = llm.get_tokenizer().apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
14output = llm.generate(prompt, SamplingParams(temperature=0.8, max_tokens=500))
15print(output[0].outputs[0].text)
16# Yi-9B-200K: 175B. GPT-4 has 175B \nparameters. How many models were combined to create GPT-4? Answer: 6. ...
17# Faro-Yi-9B: GPT-4 does not have a publicly disclosed parameter count due to the competitive landscape and safety implications of large-scale models like GPT-4. ...1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained('wenbopan/Faro-Yi-9B', device_map="cuda")
4tokenizer = AutoTokenizer.from_pretrained('wenbopan/Faro-Yi-9B')
5messages = [
6 {"role": "system", "content": "You are a helpful assistant. Always answer with a short response."},
7 {"role": "user", "content": "Tell me what is Pythagorean theorem like you are a pirate."}
8]
9
10input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
11generated_ids = model.generate(input_ids, max_new_tokens=512, temperature=0.5)
12response = tokenizer.decode(generated_ids[0], skip_special_tokens=True) # Aye, matey! The Pythagorean theorem is a nautical rule that helps us find the length of the third side of a triangle. ...| Metric | MMLU | GSM8K | HellaSwag | TruthfulQA | Arc | Winogrande |
|---|---|---|---|---|---|---|
| Yi-9B-200K | 65.73 | 50.49 | 56.72 | 33.80 | 69.25 | 71.67 |
| Faro-Yi-9B | 68.80 | 63.08 | 57.28 | 40.86 | 72.58 | 71.11 |
| Name | Average_zh | Average_en | Code Completion |
|---|---|---|---|
| Yi-9B-200K | 30.288 | 36.7071 | 72.2 |
| Faro-Yi-9B | 41.092 | 40.9536 | 46.0 |
| Name | Few-shot Learning_en | Synthetic Tasks_en | Single-Doc QA_en | Multi-Doc QA_en | Summarization_en | Few-shot Learning_zh | Synthetic Tasks_zh | Single-Doc QA_zh | Multi-Doc QA_zh | Summarization_zh |
|---|---|---|---|---|---|---|---|---|---|---|
| Yi-9B-200K | 60.6 | 22.8 | 30.9 | 38.9 | 25.8 | 46.5 | 28.0 | 49.6 | 17.7 | 9.7 |
| Faro-Yi-9B | 63.8 | 40.2 | 36.2 | 38.0 | 26.3 | 30.0 | 75.1 | 55.6 | 30.7 | 14.1 |

| Name | MMLU | CMMLU |
|---|---|---|
| Yi-9B-200K | 65.73 | 71.97 |
| Faro-Yi-9B | 68.80 | 73.28 |