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
!mkdir my_data | |
%cd my_data | |
!git init | |
!git remote add origin https://github.com/username/reponame.git | |
!git config core.sparsecheckout true | |
!echo "tests/data" >> .git/info/sparse-checkout |
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
name: My Continue Configuration | |
version: 1.0.18 | |
models: | |
- name: Ollama Mistral Nemo | |
provider: ollama | |
model: mistral-nemo:latest | |
apiBase: http://localhost:11434 | |
defaultCompletionOptions: | |
contextLength: 8192 | |
- name: Ollama CodeGemma |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 requests | |
from collections import OrderedDict | |
import logging | |
import re | |
import json | |
from time import sleep | |
def count_xml(text) -> float: | |
count = 0.0 | |
if text.count("<reasoning>\n") == 1: |
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
#!/bin/bash | |
PROJECT_DIR="~/Desktop/stablecpp-api" | |
UVICORN_PATH="${PROJECT_DIR}/.venv/bin/uvicorn" | |
cd "$PROJECT_DIR" || exit 1 | |
"$UVICORN_PATH" main:app --host 0.0.0.0 --port 11011 > ${PROJECT_DIR}/automator_sdapi.log 2>&1 & |
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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.20; | |
contract Winner is ReentrancyGuard, Pausable { | |
address public owner; | |
address public currentleader; | |
uint256 public lastDepositedAmount; | |
uint256 public currentLeaderReward; | |
uint256 public nextLeaderReward; | |
bool public rewardClaimed; |
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 pandas as pd | |
from dateutil import parser | |
import plotly.express as px | |
df1 = pd.read_csv("./monthly_job_applications_2025-04-15T08_01_46.84848Z.csv") | |
df2 = pd.read_csv("./monthly_job_posts_2025-04-15T08_01_39.691275Z.csv") | |
df1.rename(columns={"Created At": "Month"}, inplace = True) | |
df2.rename(columns={"Published At": "Month"}, inplace = True) |
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
on run {input, parameters} | |
do shell script "nohup /usr/local/bin/llama-server -m '/Volumes/TOSHIBA EXT/GGUF/gemma-3-4b-it-q4_0.gguf' --port 11234 >/dev/null 2>&1 &" | |
return input | |
end run |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 typing import Dict, Union | |
from huggingface_hub import get_safetensors_metadata | |
import argparse | |
import sys | |
# Example: | |
# python get_gpu_memory.py Qwen/Qwen2.5-7B-Instruct | |
# Dictionary mapping dtype strings to their byte sizes | |
bytes_per_dtype: Dict[str, float] = { |
NewerOlder