All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ake.jlama-net.0.5.1.source-code.JlamaService.proto Maven / Gradle / Ivy

There is a newer version: 0.8.3
Show newest version
syntax = "proto3";
option java_multiple_files = true;
package com.github.tjake.jlama.net;

message CombineRequest {
  bytes workerid = 1;
  bytes uuid = 2;
  int32 layer = 3;
  repeated bytes tensor = 4;
}

message CombineResponse {
  repeated bytes tensor = 1;
}

message GenerateRequest {
  bytes workerid = 1;
  bytes session = 2;
  bytes tensor = 3;
}

message GenerateResponse {
  bytes session = 1;
  int32 startPosition = 2;
  repeated int32 tokens = 3;
}

/**
 * Register a worker with the server
 */
message RegisterRequest {
  bytes workerid = 1;
}

message RegisterResponse {
  int32 modelShard = 1;
  int32 numModelShards = 2;
  int32 layerShard = 3;
  int32 numLayerShards = 4;
}

service JlamaService {
  rpc register(RegisterRequest) returns (RegisterResponse);
  rpc generate(stream GenerateRequest) returns (stream GenerateResponse);
  rpc combine(stream CombineRequest) returns (stream CombineResponse);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy