Skip to content

Instantly share code, notes, and snippets.

import http from 'k6/http';
import {sleep} from 'k6';
import { randomIntBetween } from 'https://jslib.k6.io/k6-utils/1.2.0/index.js';
const token = __ENV.API_TOKEN;
const MODEL_ID = "f-1" // Or "s-1"
export const options = {
@Narsil
Narsil / gist:c15cdc4c9b8efd77017fcecc99bb20bf
Created August 16, 2023 06:55
Proposal for `VarBuilder` more generic + Doable in user space.
struct Tensor{
id: usize
}
struct Linear{
weight: Tensor,
bias: Option<Tensor>,
}
import Metal
import MetalPerformanceShadersGraph
let type = MTLDataType.float;
let dataType = type;
var B = 2;
var M = 2;
[
{
"choices": [
{
"finish_reason": "length",
"index": 0,
"logprobs": null,
"message": {
"content": "Jeff Walker's Product Launch Formula is a comprehensive system",
"name": null,