I hereby claim:
- I am ronsor on github.
- I am ronsor (https://keybase.io/ronsor) on keybase.
- I have a public key ASDiFtq3AoEdl_eBGfQYlwf7IyR6NrQzabIVzS_qEYTItAo
To claim this, I am signing this object:
# Copyright © 2024 Ronsor Labs. All rights reserved | |
# Except as otherwise indicated, you may only use this software in accordance with | |
# the MIT license. | |
# A self-contained RWKV-6 x060 implementation, inspired by mamba_simple. | |
# TimeMix and wkv_op_torch adapted from Apache-2.0-licensed: | |
# - https://github.com/SmerkyG/gptcore/blob/main/model/experimental/rwkv6_0.py | |
# - https://github.com/SmerkyG/gptcore/blob/main/model/experimental/rwkv_inner.py | |
# - https://github.com/BlinkDL/RWKV-LM/blob/main/RWKV-v5/src/model.py | |
# No guarantees of correctness are made. You'll still have to do proper initialization |
#!/bin/sh | |
# License: 0BSD, Copyright (C) 2023 Ronsor Labs. | |
# Usage: ./amalgamate.sh path/to/ggml/repo | |
GGML_SRC_H='ggml-impl.h ggml-backend-impl.h ggml-quants.h' | |
GGML_SRC_C='ggml.c ggml-backend.c ggml-quants.c ggml-alloc.c' | |
GGML_INC_H='ggml.h ggml-alloc.h ggml-backend.h' | |
ONE_SRC=ggml_one.c | |
ONE_HDR=ggml_one.h |
# PyTorch implementation of Multiscale Retention | |
# Copyright (C) 2023 Ronsor Labs. This software is licensed to you under the terms of the | |
# Free Development Public License 1.0 as published at <https://freedevproject.org/fdpl-1.0>. | |
import torch | |
from torch import nn, Tensor | |
from torch.nn import functional as F | |
class XPos(nn.Module): | |
def __init__(self, dim: int, theta: int = 10000, scale_base: int = 512): |
I hereby claim:
To claim this, I am signing this object:
package main | |
import "crypto/sha512" | |
import "crypto/rand" | |
import "encoding/hex" | |
import "strings" | |
import "strconv" | |
func HashHex(data string) string { | |
d := sha512.Sum512([]byte(data)) | |
return hex.EncodeToString(d[:]) | |
} |
//gcc 5.4.0 | |
#include <stdio.h> | |
#include <stdint.h> | |
#define MAXRT 64 | |
#define NO_TRY | |
uint64_t me_id = 0xFFEEDDCC; | |
struct rtable { | |
uint64_t id; | |
uint64_t mask; |
#define USED 1 | |
typedef struct { | |
unsigned size; | |
} UNIT; | |
typedef struct { | |
UNIT* free; | |
UNIT* heap; | |
} MSYS; |