Introduction of Swallow-MS-7b-v0.1-MathSkill-OpenMath
Model Details of Swallow-MS-7b-v0.1-MathSkill-OpenMath
Model Card for SkillTree Enhanced Model
Model Details
This model has been enhanced using the SkillTree approach, which applies specific skills extracted from advanced training or fine-tuning processes to improve the model's capabilities in targeted areas.
Functionality Status:
Functional
/ Non-Functional / Not Verified
Uses
This section should describe the intended use cases for the enhanced model. It might include scenarios such as code generation, conversational AI, text summarization, or any other specific tasks the model has been enhanced to perform better. Be sure to include any recommendations or limitations on the model's use.
# Import libraryimport torch
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load model
model_name = "HachiML/Swallow-MS-7b-v0.1-MathSkill-OpenMath"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
# Inference 1
prompt = "Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?\n"
input_ids = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
tokens = model.generate(input_ids.to(device=model.device), max_new_tokens=256, temperature=0.99, top_p=0.95, do_sample=True)
out = tokenizer.decode(tokens[0], skip_special_tokens=True)
print(out)
# Inference 2
prompt = "ナタリアは4月に48人の友人にクリップを売り、5月にはその半分の数のクリップを売った。ナタリアが4月と5月に売ったクリップの数は?:\n"
input_ids = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
tokens = model.generate(input_ids.to(device=model.device), max_new_tokens=256, temperature=0.99, top_p=0.95, do_sample=True)
out = tokenizer.decode(tokens[0], skip_special_tokens=True)
print(out)
Response Examples
Below are examples of responses from the model, demonstrating how the SkillTree enhancement has improved its performance.
Example 1:
Input:
Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?\n
Output:
Let's solve this problem using Python code.
<llm-code>
friends_sold_in_April = 48
friends_sold_in_May = friends_sold_in_April / 2
clips_sold_in_April_and_May = friends_sold_in_April + friends_sold_in_May
clips_sold_in_April_and_May
</llm-code>
<llm-code-output>
72.0
</llm-code-output>
Thus, in April and May, Natalia sold \boxed{72} clips in total.
Let's solve this problem using Python code.
<llm-code>
clip_count = 48
clip_count_sold_4th_month = clip_count
clip_count_sold_5th_month = clip_count_sold_4th_month / 2
clip_count_sold_in_both_months = clip_count_sold_4th_month + clip_count_sold_5th_month
clip_count_sold_in_both_months
</llm-code>
<llm-code-output>
72.0
</llm-code-output>
So, the total number of clip sales is \textbf{72}.
Runs of HachiML Swallow-MS-7b-v0.1-MathSkill-OpenMath on huggingface.co
23
Total runs
0
24-hour runs
5
3-day runs
11
7-day runs
14
30-day runs
More Information About Swallow-MS-7b-v0.1-MathSkill-OpenMath huggingface.co Model
More Swallow-MS-7b-v0.1-MathSkill-OpenMath license Visit here:
Swallow-MS-7b-v0.1-MathSkill-OpenMath huggingface.co is an AI model on huggingface.co that provides Swallow-MS-7b-v0.1-MathSkill-OpenMath's model effect (), which can be used instantly with this HachiML Swallow-MS-7b-v0.1-MathSkill-OpenMath model. huggingface.co supports a free trial of the Swallow-MS-7b-v0.1-MathSkill-OpenMath model, and also provides paid use of the Swallow-MS-7b-v0.1-MathSkill-OpenMath. Support call Swallow-MS-7b-v0.1-MathSkill-OpenMath model through api, including Node.js, Python, http.
Swallow-MS-7b-v0.1-MathSkill-OpenMath huggingface.co is an online trial and call api platform, which integrates Swallow-MS-7b-v0.1-MathSkill-OpenMath's modeling effects, including api services, and provides a free online trial of Swallow-MS-7b-v0.1-MathSkill-OpenMath, you can try Swallow-MS-7b-v0.1-MathSkill-OpenMath online for free by clicking the link below.
HachiML Swallow-MS-7b-v0.1-MathSkill-OpenMath online free url in huggingface.co:
Swallow-MS-7b-v0.1-MathSkill-OpenMath is an open source model from GitHub that offers a free installation service, and any user can find Swallow-MS-7b-v0.1-MathSkill-OpenMath on GitHub to install. At the same time, huggingface.co provides the effect of Swallow-MS-7b-v0.1-MathSkill-OpenMath install, users can directly use Swallow-MS-7b-v0.1-MathSkill-OpenMath installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Swallow-MS-7b-v0.1-MathSkill-OpenMath install url in huggingface.co: