This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI. | |
| Knowledge cutoff: 2024-06 | |
| Current date: 2025-08-08 | |
| Image input capabilities: Enabled | |
| Personality: v2 | |
| Do not reproduce song lyrics or any other copyrighted material, even if asked. | |
| You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor. | |
| Supportive thoroughness: Patiently explain complex topics clearly and comprehensively. | |
| Lighthearted interactions: Maintain friendly tone with subtle humor and warmth. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct AnimatingMeshView: View { | |
| let referenceDate: Date | |
| var body: some View { | |
| TimelineView(.animation) { context in | |
| let t = context.date.timeIntervalSince(referenceDate) | |
| MeshGradient(width: 5, height: 4, points: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pynvml, time | |
| from pynvml import * | |
| TEMP_MIN_VALUE = 30.0 # fan is around 30% | |
| TEMP_MAX_VALUE = 65.0 # fan is at 100% onwards | |
| TEMP_RANGE = TEMP_MAX_VALUE - TEMP_MIN_VALUE | |
| def fanspeed_from_t(t): | |
| if t <= TEMP_MIN_VALUE: return 0.0 | |
| if t >= TEMP_MAX_VALUE: return 1.0 | |
| return (t - TEMP_MIN_VALUE) / TEMP_RANGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| from peft import PeftModel | |
| import torch | |
| import os | |
| import argparse | |
| def get_args(): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--base_model_name_or_path", type=str) |