CoolFace
Modelpublic

ilovesushiandkimchiandmalaxiangguo/shuPT-xiaohongshu-Llama3-8B-Instruct

sourceHugging Faceupdated 2y agoView on Hugging Face
2likes16downloads
Model Card

[image]

Model Card for Model ID

Introducing 🍠(shΗ”)PT-Llama3-8B-Instruct ! A SFT (Supervised Fine-Tuning) model trained on Xiaohongshu data.

Model Details

  • β€”Base Model: Meta-Llama-3-8B-Instruct
  • β€”Architecture: LLaMA 3 with LoRA fine-tuning
  • β€”Language: Chinese
  • β€”Task: Instruction following and conversational responses
  • β€”License: Same as base LLaMA 3 model.

Training Details

  • β€”Training Data: 30k crawled from Xiaohongshu (小纒书)
  • β€”Framework: Hugging Face Transformers, PEFT, TRL

Training Data Details

  • β€”Data source: 30k entries crawled from Xiaohongshu (小纒书), specifically targeting 'city walk' related posts
  • β€”Copyright: All content rights belong to Xiaohongshu
  • β€”Usage restrictions: Academic/research purposes only
  • β€”Format: Alpaca-style instruction tuning format
  • β€”Known issues:
  • β€”Incomplete conversation formatting in some samples
  • β€”EOS token placement inconsistencies
  • β€”Response length variations

Training Parameters

  • β€”Learning rate: 2e-4
  • β€”Weight decay: 0.001
  • β€”Max gradient norm: 0.3
  • β€”Warmup ratio: 0.03
  • β€”LR scheduler: Cosine
  • β€”Training precision: 4-bit quantization (QLoRA)
  • β€”LoRA rank (r): 64
  • β€”LoRA alpha: 16
  • β€”LoRA dropout: 0.1

Intended Use

  • β€”Chinese language instruction following
  • β€”Conversational responses
  • β€”Location-based recommendations
  • β€”City navigation assistance
  • β€”Cultural and historical information sharing

Limitations

  • β€”Limited to Chinese language understanding and generation
  • β€”Domain-specific knowledge biased towards Xiaohongshu content
  • β€”Inherits base model limitations
  • β€”May generate inconsistent responses due to temperature-based sampling

Performance

  • β€”Shows improved performance on Chinese instruction following
  • β€”Demonstrates strong capabilities in location-based recommendations

Ethical Considerations

  • β€”Model inherits potential biases from Xiaohongshu data
  • β€”Should be used in compliance with base model's usage policies
  • β€”Content generation should be monitored for accuracy and appropriateness

Optimization Opportunities

  • β€”Training parameters could be optimized for better performance
  • β€”Data cleaning and formatting could be improved

Result

  • β€”Question: θ―·ζŽ¨θδΈ€δΈ‹εŒ—δΊ¬ηš„city walkθ·―ηΊΏ (Please recommend some city walk routes in Beijing) [image]