Views
No views yet
| Quant | Model Size | lm_head |
|---|---|---|


| Subset | #Tokens | Avg. #Q | Avg. Query Len | Avg. #R | Avg. Reply Len |
|---|---|---|---|---|---|
| MathInstruct | 66,639,699 | 1.00 | 81.53 | 1.00 | 172.78 |
| OpenHermes-2 | 404,820,694 | 1.01 | 152.38 | 1.01 | 249.12 |
| FLAN_3M | 2,346,961,387 | 1.00 | 727.49 | 1.00 | 54.83 |
| Standford Encyclopedia Philosophy | 786,928 | 1.00 | 219.09 | 1.00 | 166.28 |
| TinyStories | 1,448,898 | 1.00 | 260.82 | 1.00 | 207.47 |
| Safety & Alignment Data | 99,976,621 | 1.00 | 126.71 | 1.00 | 373.79 |
| Total | 2,920,634,227 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained("LLM360/K2-Chat")
4model = AutoModelForCausalLM.from_pretrained("LLM360/K2-Chat")
5
6prompt = '<|beginofuser|>what is the highest mountain on earth?<|beginofsystem|>'
7
8input_ids = tokenizer(prompt, return_tensors="pt").input_ids
9gen_tokens = model.generate(input_ids, do_sample=True, max_new_tokens=128)
10
11print("-"*20 + "Output for model" + 20 * '-')
12print(tokenizer.batch_decode(gen_tokens)[0])1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained("LLM360/K2-Chat")
4model = AutoModelForCausalLM.from_pretrained("LLM360/K2-Chat")
5
6messages = [{"role": "user", "content": "what is the highest mountain on earth?"}]
7
8input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
9gen_tokens = model.generate(input_ids, do_sample=True, max_new_tokens=128)
10
11print("-"*20 + "Output for model" + 20 * '-')
12print(tokenizer.batch_decode(gen_tokens)[0])1@article{
2 title={LLM360 K2-65B: Scaling Up Fully Transparent Open-Source LLMs},
3 author={The LLM360 Team},
4 year={2024},
5}