Downloads · 30 days
15
4% of all-time downloads
satoyutaka/LLM_main_LGSFT_150
LLM_main_LGSFT_150 is a text generation model from satoyutaka. Use it when you need the model to write or continue text. It is set up for peft.
This model is a LoRA adapter fine-tuned on Qwen3-4B-Instruct-2507, specialized for complex structural data conversion and extraction tasks. By adopting the "Legendary 指示 (Instruction) Format," this model is optimized…
Downloads · 30 days
15
4% of all-time downloads
All-time downloads
387
Public
Repo size
35 MB
Likes
0
Public
Click a slice to open those files.
.safetensors23.6 MB · 67%
From the Hugging Face model README
This model is a LoRA adapter fine-tuned on Qwen3-4B-Instruct-2507, specialized for complex structural data conversion and extraction tasks. By adopting the "Legendary ### 指示 (Instruction) Format," this model is optimized to directly output pure structural data without any unnecessary explanatory text or markdown code blocks (```).
The model addresses the common issue where LLMs tend to add conversational filler or markdown formatting around the requested structured data. Through focused SFT (Supervised Fine-Tuning) on high-quality structural examples, it achieves high precision in formatting for JSON, XML, TOML, CSV, and YAML.
The training data for this model has been created in strict compliance with the competition rules and the terms of service of each base model.
bert-base-multilingual-cased.To use this model, you can load it using the transformers and peft libraries:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base_model_id = "Qwen/Qwen3-4B-Instruct-2507"
adapter_id = "satoyutaka/LLM_main_LGSFT_150"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
# Perform inference using the Legendary Format
query = "..." # Your query here
prompt = f"### 指示\n{query}\n\n### 応答\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=1024)
response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response.strip())
The following "Legendary Format" input is required to ensure optimal performance.
### 指示
{query}
### 応答
本モデルは、Qwen3-4B-Instruct-2507 をベースに、複雑な構造化データの変換・抽出タスクに特化してファインチューニングされたLoRAアダプタです。「伝説の ### 指示 フォーマット」を採用することで、余計な説明文やマークダウンコードブロック(```)を一切含まない、純粋な構造化データのみを直接出力するように最適化されています。
LLMが要求された構造化データの周囲に対話的なつなぎ言葉やマークダウン形式を付け加えてしまう一般的な課題に対処しています。高品質な構造化データの例を用いた集中したSFTを通じて、JSON、XML、TOML、CSV、YAMLにおいて高いフォーマット精度を実現します。
本モデルの学習データは、大会規約および各モデルの利用規約を厳格に遵守して作成されています。
bert-base-multilingual-cased を用いた [MASK] 言語モデルによる語彙置換を行いました。このモデルを使用するには、transformers および peft ライブラリを使用してロードできます:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base_model_id = "Qwen/Qwen3-4B-Instruct-2507"
adapter_id = "satoyutaka/LLM_main_LGSFT_150"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
# 推論
query = "..." # クエリをここに入力
prompt = f"### 指示\n{query}\n\n### 応答\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=1024)
response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response.strip())
性能を最大限に引き出すためには、以下の「伝説のフォーマット」による入力が必須です。
### 指示
{query}
### 応答