qingy2024 commited on
Commit
b565d27
·
verified ·
1 Parent(s): 1177c65

Upload 4 files

Browse files
Files changed (5) hide show
  1. .gitattributes +2 -0
  2. README.md +77 -0
  3. aime.png +0 -0
  4. eval-new.png +3 -0
  5. eval.png +3 -0
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ eval-new.png filter=lfs diff=lfs merge=lfs -text
37
+ eval.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ # Reka Flash 3
5
+
6
+ Reka Flash 3 is a 21B general-purpose reasoning model that was trained from scratch. It was trained in synthetic and public datasets for supervised finetuning, followed by RLOO with model-based and rule-based rewards. It performs competitively with proprietary models such as OpenAI o1-mini, making it a good foundation to build applications that require low latency or on-device deployment. It is currently the best open model in its size category.
7
+
8
+ Try it out at [Reka Space](https://space.reka.ai).
9
+
10
+ Reka Flash 3 powers Nexus, our new platform for organizations to create and manage AI workers. Nexus workers have native deep research capabilities and can browse the web, execute code, and analyse internal files including documents, images, videos and audio. Learn more about Nexus at [getnexus.reka.ai](https://getnexus.reka.ai).
11
+
12
+ ![Performance](./eval-new.png)
13
+
14
+ ## Quickstart
15
+
16
+ For ease of deployment, the model is released in a Llama-compatible format. You may use any library compatible with Llama to run the model.
17
+
18
+ ### Via Hugging Face
19
+
20
+ ```python
21
+ import transformers
22
+
23
+ tokenizer = transformers.AutoTokenizer.from_pretrained("RekaAI/reka-flash-3")
24
+ model = transformers.AutoModelForCausalLM.from_pretrained("RekaAI/reka-flash-3", torch_dtype='auto', device_map='auto')
25
+
26
+ prompt = {"role": "human", "content": "Write a poem about large language model."}
27
+ text = tokenizer.apply_chat_template([prompt], tokenize=False, add_generation_prompt=True)
28
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
29
+ outputs = model.generate(**model_inputs, max_new_tokens=512)
30
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
31
+ ```
32
+
33
+ ### Via vLLM
34
+
35
+ ```bash
36
+ docker run --rm -it --network=host --gpus '"device=0"' -v --shm-size=10.24gb vllm/vllm-openai:latest serve RekaAI/reka-flash-3 --dtype auto -tp 1
37
+ ```
38
+
39
+ ## Model Details
40
+
41
+ ### Prompt Format
42
+
43
+ Reka Flash 3 uses cl100k_base tokenizer and adds no additional special tokens. Its prompt format is as follows:
44
+
45
+ ```
46
+ human: this is round 1 prompt <sep> assistant: this is round 1 response <sep> ...
47
+ ```
48
+
49
+ Generation should stop on seeing the string `<sep>` or seeing the special token `<|endoftext|>`.
50
+
51
+ System prompt can be added by prepending to the first user round.
52
+
53
+ ```
54
+ human: You are a friendly assistant blah ... this is round 1 user prompt <sep> assistant: this is round 1 response <sep> ...
55
+ ```
56
+
57
+ For multi-round conversations, it is recommended to drop the reasoning traces in the previous assistant round to save tokens for the model to think.
58
+
59
+ If you are using HF or vLLM, the built-in chat_template shall handle prompt formatting automatically.
60
+
61
+ ### Budget Forcing
62
+
63
+ Reka Flash thinks before it produces an output. We use <reasoning> </reasoning> tags to indicate the beginning and the end of its thinking process. For some problems, the model might think for a long time. You can make the model to stop its thinking process by forcing it to output </reasoning> after a certain number of steps. We observe such a budget forcing mechanism will still produce a reasonable output. We show performance on AIME-2024 (cons@16) for various budgets below.
64
+
65
+ ![AIME'24](./aime.png)
66
+
67
+
68
+ ### Language Support
69
+
70
+ This model is primarily built for the English language, and you should consider this an English only model. However, the model is able to converse and understand other languages to some degree.
71
+
72
+
73
+ ### Release Notes
74
+
75
+ - As a smaller model, it is not the best model for knowledge-intensive tasks. We recommend coupling Reka Flash 3 with web search for knowledge-related tasks.
76
+ - The model often thinks in English when prompted with questions in non-English languages. We observe that this sometimes affects the output quality in non-English languages.
77
+ - The model has not undergone extensive alignment or persona training.
aime.png ADDED
eval-new.png ADDED

Git LFS Details

  • SHA256: f914dc4194572ef39b525b28f9afcf164326ebfaf43231920507ecb4a475632d
  • Pointer size: 131 Bytes
  • Size of remote file: 235 kB
eval.png ADDED

Git LFS Details

  • SHA256: 0f4c4347af3b177fba02cf21d70dbe7c208d49044c75636ec79a4ed06a3434b1
  • Pointer size: 131 Bytes
  • Size of remote file: 205 kB