YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
🧠 GPP-1: General Purpose Processing Model (by krade)
GPP-1은 한국어와 영어를 모두 지원하는 범용 텍스트 생성 모델입니다.GPT-2 아키텍처를 기반으로 강화학습(강화 파인튜닝, Reinforcement Fine-Tuning) 을 통해 약 10,000줄의 데이터로 실험적으로 학습되었습니다.
텍스트 생성, 대화, 스토리텔링, 코드 생성 등 다양한 목적에 사용할 수 있습니다.
📦 Model Information
| 항목 | 내용 |
|---|---|
| 모델 이름 | GPP-1 (General Purpose Processing v1) |
| 아키텍처 | GPT2LMHeadModel |
| 학습 방식 | Reinforcement Fine-Tuning |
| 지원 언어 | 한국어, 영어 |
| 기반 모델 | gpt2 |
| 프레임워크 | PyTorch |
| 토크나이저 | GPT2Tokenizer |
| 모델 파일 | model.safetensors |
| 라이선스 | MIT License |
🧩 File Structure
config.json generation_config.json merges.txt vocab.json tokenizer_config.json special_tokens_map.json model.safetensors README.md LICENSE
python 코드 복사
🚀 Usage Example
아래 예제는 사용자의 입력을 받아 모델이 직접 문장을 생성하도록 하는 코드입니다.
from transformers import GPT2LMHeadModel, GPT2Tokenizer
# 모델 로드 (로컬 폴더 또는 허깅페이스 경로)
model_name = "krade/GPP-1" # 허깅페이스에 업로드한 이름
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
model = GPT2LMHeadModel.from_pretrained(model_name)
while True:
prompt = input("You: ")
if prompt.lower() in ["exit", "quit", "종료"]:
print("대화를 종료합니다.")
break
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_length=150,
temperature=0.8,
top_p=0.9,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print("GPP-1:", response)
🧾 License
이 프로젝트는 MIT License 하에 배포됩니다.
sql
코드 복사
MIT License
Copyright (c) 2025 krade
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
💡 Notes
이 모델은 연구 및 실험 목적으로 제작되었습니다.
입력의 스타일과 길이에 따라 출력 품질이 달라질 수 있습니다.
본 모델을 활용한 프로젝트나 연구를 발표할 경우 "krade / GPP-1" 을 인용해 주세요.
MIT 라이선스에 따라 상업적 이용 또한 허용됩니다.
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support