04.6.13.04 deepseek-math-7b-instruct
Model Description
The @cf/deepseek-ai/deepseek-math-7b-instruct
model includes two nodes:
- deepseek-math-7b-instruct Prompt (preview)
- deepseek-math-7b-instruct With History (preview)
Model ID: @cf/deepseek-ai/deepseek-math-7b-instruct
. The DeepSeekMath-Instruct 7B model is a mathematically trained version of the more general DeepSeekMath-Base 7B model. It was initialized with the DeepSeek-Coder-v1.5 7B model and then continued pre-training on mathematical tokens taken from Common Crawl, as well as on natural language and code data totaling 500 billion tokens.
The model can be used to solve a variety of problems related to natural language processing and mathematical computation:
- Answering math-related questions: explaining math concepts, solving math problems, suggesting steps for solving math problems.
- Generating mathematical texts: creating mathematical reports, articles, essays, generating mathematical problems and exercises, composing mathematical proofs and conclusions
- Processing mathematical data: analyzing and interpreting mathematical data, building mathematical models and forecasts, visualizing mathematical information
- Assisting in mathematics education: explaining mathematical concepts to students, providing hints and recommendations when solving problems, creating mathematics tutorials
Example of launching a node
A description of the node fields can be found here.
Let's run the deepseek-math-7b-instruct Prompt (preview) node to process text and generate a response with parameters:
- User Prompt Write instructions for solving the quadratic equation $4x^2 - 16x + 10 = 0$
- Max Tokens (Answer Size) - 800.
The output of the node execution is JSON:
- with a response to the
"response"
request;
- with the status of the action
"success": true
.
JSON (parameter "response")
To solve the quadratic equation $4x^2 - 16x + 10 = 0$, we can use the quadratic formula which is given by:
$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
In this case, $a = 4$, $b = -16$, and $c = 10$. Plugging these values into the quadratic formula, we get:
$x = \frac{-(-16) \pm \sqrt{(-16)^2 - 4*4*10}}{2*4}$
Simplifying further:
$x = \frac{16 \pm \sqrt{256 - 160}}{8}$
$x = \frac{16 \pm \sqrt{96}}{8}$
We can simplify the square root by factoring out the perfect square:
$x = \frac{16 \pm 4\sqrt{6}}{8}$
Now, we can simplify the expression by dividing the numerator and the denominator by 4:
$x = \frac{4 \pm \sqrt{6}}{2}$
So, the solutions for $x$ are:
$x = \frac{4 + \sqrt{6}}{2}$ and $x = \frac{4 - \sqrt{6}}{2}$