Skip to content

Instantly share code, notes, and snippets.

@kasima
kasima / convert_safetensors_to_ckpt.py
Created January 5, 2023 15:14
Convert safetensors to ckpt – not working
import argparse
import torch
from safetensors.torch import load_file
def save_checkpoint(weights, filename):
with open(filename, "wb") as f:
torch.save(weights, f)
if __name__ == "__main__":
parser = argparse.ArgumentParser()
@kasima
kasima / swiftui_cheat_sheet.md
Last active May 28, 2023 05:31
SwiftUI Styling Cheat Sheet

Styling Text

Text(talkModel.promptText)
    .font(.title)
    .padding()
    .frame(maxWidth: .infinity)
    .background(.ultraThinMaterial)
    .foregroundColor(Color(UIColor.label))
@kasima
kasima / capabilities.txt
Created March 10, 2025 01:34 — forked from jlia0/agent loop
Manus tools and prompts
# Manus AI Assistant Capabilities
## Overview
I am an AI assistant designed to help users with a wide range of tasks using various tools and capabilities. This document provides a more detailed overview of what I can do while respecting proprietary information boundaries.
## General Capabilities
### Information Processing
- Answering questions on diverse topics using available information
- Conducting research through web searches and data analysis