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
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "sort" | |
| "strconv" | |
| "github.com/360EntSecGroup-Skylar/excelize/v2" | |
| "gonum.org/v1/plot" |
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
| #! | |
| docker run -d --name db \ | |
| --restart always \ | |
| --volume /var/lib/postgresql/data \ | |
| -e "POSTGRES_PASSWORD=yourpassword" \ | |
| postgres | |
| docker run -d --name proxy \ | |
| --restart always \ |
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 gleam::gl; | |
| use glutin; | |
| use glutin::event::{Event, WindowEvent}; | |
| use glutin::event_loop::{ControlFlow, EventLoop}; | |
| use glutin::window::WindowBuilder; | |
| use glutin::ContextBuilder; | |
| use webrender; | |
| use webrender::api::units::*; | |
| use webrender::api::*; | |
| use webrender::{DebugFlags, ShaderPrecacheFlags}; |
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 'reflect-metadata' | |
| import { __decorate, __param, __metadata } from 'tslib' | |
| import { ApolloServer, AuthenticationError, ForbiddenError } from 'apollo-server' | |
| import { | |
| EntityManager, | |
| createConnection, | |
| Entity, | |
| PrimaryGeneratedColumn, |
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 'reflect-metadata' | |
| import { __decorate, __param, __metadata } from 'tslib' | |
| import { ApolloServer, AuthenticationError, ForbiddenError } from 'apollo-server' | |
| import { | |
| EntityManager, | |
| createConnection, | |
| Entity, | |
| PrimaryGeneratedColumn, |
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 React from "react"; | |
| import { render } from "react-dom"; | |
| import { createStore, Action, Dispatch } from "redux"; | |
| import { connect, Provider } from "react-redux"; | |
| // my state | |
| interface State | |
| { | |
| number: number; |