In order to keep filters up to date, please use this repo.
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 datasets import load_dataset | |
| from transformers import ( | |
| AutoTokenizer, AutoModelForCausalLM, | |
| TrainingArguments, Trainer, DataCollatorForSeq2Seq, | |
| set_seed | |
| ) | |
| from peft import LoraConfig, get_peft_model, TaskType | |
| import torch | |
| set_seed(42) |
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 os | |
| from functools import lru_cache | |
| import torch | |
| from torch import nn | |
| import torch.nn.functional as F | |
| from transformers import Qwen3Config | |
| from transformers import Qwen2TokenizerFast |
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
| use candle::{Device, Tensor, quantized::gguf_file}; | |
| use candle_transformers::{ | |
| generation::{LogitsProcessor, Sampling}, | |
| models::quantized_qwen3::ModelWeights as Qwen3, | |
| }; | |
| use std::{ | |
| fs::File, | |
| io::{self, Write}, | |
| }; | |
| use tokenizers::Tokenizer; |
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
| use std::io::Write; | |
| use tokenizers::Tokenizer; | |
| use candle_core::quantized::{gguf_file}; | |
| use candle_core::Device; | |
| use candle_transformers::generation::{LogitsProcessor, Sampling}; | |
| use candle_transformers::models::quantized_llama as model; | |
| use model::ModelWeights; | |
| use burnt_wick::streamable_model::StreamableModel; | |
| fn load_model_and_tokenizer( |
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
| # Four lines intentionally left blank | |
| # SPDX-FileCopyrightText: 2025 geisserml <geisserml@gmail.com> | |
| # SPDX-License-Identifier: Apache-2.0 OR MPL-2.0 | |
| # See also https://github.com/extremeheat/JSPyBridge/blob/master/examples/python/pdfjs.py |
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 will need to add `Privacy - Calendars Usage Description` as a key in your plist file. | |
| // If you don't have a plist file, click on your project's name > Info and add the key there | |
| // The value should be a brief description as to why you need access to the calendar | |
| // This gist will create the event as soon as the view is loaded | |
| // You'll want to attach it to a button or an action instead | |
| // Place the following code in one of your SwiftUI View files | |
| let store = EKEventStore() |
| Desc | vscode | intellij |
|---|---|---|
| Find Actions / Cmd Pallete | Cmd+Shift+P | Cmd+Shift+A |
| Toggle Sidebar | Cmd+B | Cmd+1 |
| View File in Sidebar | Cmd+Shift+E | Alt+F1,1 |
| Open File From Sidebar | Cmd+Down | Enter |
| Open File | Cmd+P | Cmd+Shift+N |
| New File | Cmd+N | Ctrl+Enter |
| Move Line Up | Shift+Opt+Up | Shift+Opt+Up |
| Move Line Down | Shift+Opt+Up | Shift+Opt+Down |
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
| /* global __DEV__ */ | |
| import React, { useState, useEffect, useRef } from "react" | |
| import { | |
| facebookAppId, | |
| facebookDisplayName, | |
| iosOneSignalAppId, | |
| androidOneSignalAppId, | |
| sentryDsn, | |
| } from "./app.json" | |
| import { version } from "./package.json" |
NewerOlder