Model Card for Model ID

The WriteMyPaper Gemma-2-2b-it model helps users to write abstracts of papers, fine-tuned by massive datasets of text summarization (each section and entire paper) of korean papers.

Model Details

  • ๋ชจ๋ธ์„ ์ž‘์„ฑํ•˜๊ณ  ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ–ˆ๋˜ ๊ณผ์ •์˜ ํŠœํ† ๋ฆฌ์–ผ์„ https://espebaum.github.io/ml/Gemma2FineTuning ์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ๊นƒํ—ˆ๋ธŒ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋Š” https://github.com/Espebaum/Gemma2b-it-Write-My-Paper ์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Model Description

This model is a fine-tuned version of the Gemma-2-2B-IT model, tailored for academic paper summarization and generation tasks. It focuses on processing large-scale academic data to use abstract summaries to generate expanded full abstracts.

  • Developed by: gyopark
  • Model type: Causal Language Model (AutoModelForCausalLM)
  • Language(s) (NLP): Korean
  • License: Gemma Term of Use
  • Finetuned from model [optional]: google/gemma-2-2b-it

Model Sources [optional]

Direct Use

This model is designed for use in academic environments where summarizing, analyzing, and generating longer texts based on research papers or technical documents is required. Users can input a brief overview of the abstract, and the model will provide a detailed expansion of the content.

Downstream Use [optional]

The model can be further fine-tuned for specific domains within academic writing, such as biomedical research, legal papers, or engineering documentation. It can also be integrated into platforms for automated academic writing assistance or research paper generation.

Out-of-Scope Use

The model is not suitable for general-purpose text generation outside academic or technical contexts. It may not perform well in creative writing tasks or in generating content without structured input like research articles.

Recommendations

Users should ensure that the input is structured in a format appropriate for academic or technical summarization. Since the model generates based on existing research content, it is recommended to verify the accuracy of the output for fact-checking.

How to Get Started with the Model

Use the code below to get started with the model.

from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline

FINETUNED_MODEL = "gyopark/gemma-2-2b-it-WriteMyPaper"

model = AutoModelForCausalLM.from_pretrained(FINETUNED_MODEL, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(FINETUNED_MODEL)

pipe = pipeline(
    "text-generation", 
    model=model, 
    tokenizer=tokenizer, 
)

# doc
<!-- ํ•œใ†์ค‘ใ†์ผ 3๊ตญ์˜ ์ •์น˜์  ํƒœ๋„์™€ ์‚ฌํšŒ๊ฒฝ์ œ์ฒด์ œ๋ฅผ โ€˜์„ธ๊ณ„๊ฐ€์น˜๊ด€์กฐ์‚ฌโ€™ ์ž๋ฃŒ๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ตญ๊ฐ€ ๊ฐ„ ๋น„๊ต๋ถ„์„ํ•˜์˜€๋‹ค.
์ค‘๊ตญ์˜ ์•„์‹œ์•„์  ๊ฐ€์น˜ ์ง€ํ–ฅ์„ฑ์ด ๊ฐ€์žฅ ๋†’๊ณ  ์ผ๋ณธ์ด ๊ฐ€์žฅ ๋‚ฎ๋‹ค. ์„œ๊ตฌ์  ๋ฏผ์ฃผ์ฃผ์˜ ์ง€ํ–ฅ์„ฑ์€ ์ผ๋ณธ์ด ๊ฐ€์žฅ ๋†’๊ณ  ํ•œ๊ตญ์ด ๊ทธ ๋‹ค์Œ์ด๋ฉฐ ์ค‘๊ตญ์ด ๊ฐ€์žฅ ๋‚ฎ๋‹ค.
ํ•œใ†์ค‘ใ†์ผ 3๊ตญ์˜ ์ •์น˜์  ํƒœ๋„์—์„œ์˜ ์ฐจ์ด๋Š” ์‚ฌํšŒ๊ตฌ์กฐ์  ๋ณ€๋™ ๊ฒฝํ—˜์„ ๋ฐ˜์˜ํ•˜๋Š” ๊ฒƒ์ด๋‹ค. -->

messages = [
    {
        "role": "user",
        "content": "๋‹ค์Œ ์š”์•ฝ๋œ ๊ธ€์„ ํ•œ ๋ฌธ๋‹จ์œผ๋กœ ๊ธธ๊ฒŒ ์จ์ฃผ์„ธ์š”.:\n\n{}".format(doc)
    }
]

prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

# prompt
<!-- <bos><start_of_turn>user
\n๋‹ค์Œ ์š”์•ฝ๋œ ๊ธ€์„ ํ•œ ๋ฌธ๋‹จ์œผ๋กœ ๊ธธ๊ฒŒ ์จ์ฃผ์„ธ์š”.:\n
\nํ•œใ†์ค‘ใ†์ผ 3๊ตญ์˜ ์ •์น˜์  ํƒœ๋„์™€ ์‚ฌํšŒ๊ฒฝ์ œ์ฒด์ œ๋ฅผ โ€˜์„ธ๊ณ„๊ฐ€์น˜๊ด€์กฐ์‚ฌโ€™ ์ž๋ฃŒ๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ตญ๊ฐ€ ๊ฐ„ ๋น„๊ต๋ถ„์„ํ•˜์˜€๋‹ค.
์ค‘๊ตญ์˜ ์•„์‹œ์•„์  ๊ฐ€์น˜ ์ง€ํ–ฅ์„ฑ์ด ๊ฐ€์žฅ ๋†’๊ณ  ์ผ๋ณธ์ด ๊ฐ€์žฅ ๋‚ฎ๋‹ค. ์„œ๊ตฌ์  ๋ฏผ์ฃผ์ฃผ์˜ ์ง€ํ–ฅ์„ฑ์€ ์ผ๋ณธ์ด ๊ฐ€์žฅ ๋†’๊ณ  ํ•œ๊ตญ์ด ๊ทธ ๋‹ค์Œ์ด๋ฉฐ ์ค‘๊ตญ์ด ๊ฐ€์žฅ ๋‚ฎ๋‹ค.
ํ•œใ†์ค‘ใ†์ผ 3๊ตญ์˜ ์ •์น˜์  ํƒœ๋„์—์„œ์˜ ์ฐจ์ด๋Š” ์‚ฌํšŒ๊ตฌ์กฐ์  ๋ณ€๋™ ๊ฒฝํ—˜์„ ๋ฐ˜์˜ํ•˜๋Š” ๊ฒƒ์ด๋‹ค.<end_of_turn>\n
<start_of_turn>model\n -->

outputs = pipe(
    prompt,
    do_sample=True,
    add_special_tokens=True,
    max_new_tokens=1024
)

outputs[0]['generated_text']

Training Details

Training Data

The model was fine-tuned on a dataset of academic papers, including research articles and technical reports, focusing on generating accurate summaries and expanding scientific content.

Training Procedure

  • Training regime: Mixed precision (fp16)
  • Hardware: 1 L4 GPU
  • Training time: Approximately 3 hours
  • Fine-tuning approach: Low-Rank Adaptation (LoRA)

Summary

The model effectively processes academic papers, providing high-quality summaries and generating longer expansions of sections or abstracts. It supports Korean research documents.

Citation [optional]

Citation

BibTeX:

@misc{gyopark_gemma_2_2b_it_WriteMyPaper, 
  author = {gyopark}, 
  title = {WriteMyPaper}, 
  year = {2024}, 
  url = {https://huggingface.co/gyopark/gemma-2-2b-it-WriteMyPaper}, 
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Model tree for gyopark/gemma-2-2b-it-WriteMyPaper

Base model

google/gemma-2b-it
Finetuned
(49)
this model