file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
doc/examples/cython/cython_examples/__init__.py | Python | from .cython_simple import simple_func, fib, fib_int, \
fib_cpdef, fib_cdef, simple_class
from .masked_log import masked_log
from .cython_blas import \
compute_self_corr_for_voxel_sel, \
compute_kernel_matrix, \
compute_single_self_corr_syrk, \
compute_single_self_corr_gemm, \
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/cython/cython_examples/cython_blas.pyx | Cython | #!python
# cython: embedsignature=True, binding=True
# Copyright 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/cython/cython_examples/cython_simple.pyx | Cython | #!python
# cython: embedsignature=True, binding=True
def simple_func(x, y, z):
return x + y + z
# Cython code directly callable from Python
def fib(n):
if n < 2:
return n
return fib(n-2) + fib(n-1)
# Typed Cython code
def fib_int(int n):
if n < 2:
return n
return fib_int(n-2) +... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/cython/cython_examples/masked_log.pyx | Cython | #!python
# cython: embedsignature=True, binding=True
# Copyright 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/cython/cython_main.py | Python | import ray
import click
import inspect
import numpy as np
import cython_examples as cyth
def run_func(func, *args, **kwargs):
"""Helper function for running examples"""
ray.init()
func = ray.remote(func)
# NOTE: kwargs not allowed for now
result = ray.get(func.remote(*args))
# Inspect the ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/cython/setup.py | Python | import os
from setuptools import setup
from Cython.Build import cythonize
import numpy
pkg_dir = "cython_examples"
modules = ["cython_simple.pyx", "masked_log.pyx"]
install_requires = ["cython", "numpy"]
include_dirs = [numpy.get_include()]
# TODO: Need scipy to run BrainIAK example, but don't want to add additional... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/doc_code/tf_example.py | Python | # flake8: noqa
"""
This file holds code for the TF best-practices guide in the documentation.
It ignores yapf because yapf doesn't allow comments right after code blocks,
but we put comments right after code blocks to prevent large white spaces
in the documentation.
"""
# yapf: disable
# __tf_model_start__
def crea... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/doc_code/torch_example.py | Python | # flake8: noqa
"""
This file holds code for the Torch best-practices guide in the documentation.
It ignores yapf because yapf doesn't allow comments right after code blocks,
but we put comments right after code blocks to prevent large white spaces
in the documentation.
"""
# yapf: disable
# __torch_model_start__
impor... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/lbfgs/driver.py | Python | import numpy as np
import os
import scipy.optimize
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import ray
import ray.experimental.tf_utils
class LinearModel(object):
"""Simple class for a one layer neural network.
Note that this code does not initialize the network we... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/lm/preprocess.sh | Shell | cd ~/efs/lm
# download the dataset
wget https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-103-raw-v1.zip
unzip wikitext-103-raw-v1.zip
# encode it with the GPT-2 BPE
mkdir -p gpt2_bpe
wget -O gpt2_bpe/encoder.json https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/encoder.json
wget -O gpt2_bpe/vocab.bpe htt... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/lm/ray_train.py | Python | #!/usr/bin/env python3 -u
import math
import copy
import socket
import time
import ray
import fairseq
from fairseq import options
from fairseq_cli.train import main
from contextlib import closing
_original_save_checkpoint = fairseq.checkpoint_utils.save_checkpoint
class RayDistributedActor:
"""Actor to perfor... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/lm/ray_train.sh | Shell | #!/bin/bash
TOTAL_UPDATES=125000 # Total number of training steps
WARMUP_UPDATES=10000 # Warmup the learning rate over this many updates
PEAK_LR=0.0005 # Peak learning rate, adjust as needed
TOKENS_PER_SAMPLE=512 # Max sequence length
MAX_POSITIONS=512 # Num. positional embeddings... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/newsreader/server.py | Python | import atoma
from flask import Flask, jsonify, request
from flask_cors import CORS
import requests
import sqlite3
import ray
@ray.remote
class NewsServer(object):
def __init__(self):
self.conn = sqlite3.connect("newsreader.db")
c = self.conn.cursor()
c.execute("""CREATE TABLE IF NOT EXIS... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/plot_hyperparameter.py | Python | """
Simple Parallel Model Selection
===============================
In this example, we'll demonstrate how to quickly write a hyperparameter
tuning script that evaluates a set of hyperparameters in parallel.
This script will demonstrate how to use two important parts of the Ray API:
using ``ray.remote`` to define rem... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/plot_parameter_server.py | Python | """
Parameter Server
================
The parameter server is a framework for distributed machine learning training.
In the parameter server framework, a centralized server (or group of server
nodes) maintains global shared parameters of a machine-learning model
(e.g., a neural network) while the data and computation... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/plot_pong_example.py | Python | # flake8: noqa
"""
Learning to Play Pong
=====================
In this example, we'll train a **very simple** neural network to play Pong using
the OpenAI Gym.
At a high level, we will use multiple Ray actors to obtain simulation rollouts
and calculate gradient simultaneously. We will then centralize these
gradients ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/examples/streaming/streaming.py | Python | import argparse
from collections import Counter, defaultdict
import heapq
import numpy as np
import os
import ray
import wikipedia
parser = argparse.ArgumentParser()
parser.add_argument("--num-mappers",
help="number of mapper actors used", default=3, type=int)
parser.add_argument("--num-reducers",
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/kubernetes/example.py | Python | from collections import Counter
import os
import sys
import time
import ray
@ray.remote
def gethostname(x):
import time
import socket
time.sleep(0.01)
return x + (socket.gethostname(), )
def wait_for_nodes(expected):
# Wait for all nodes to join the cluster.
while True:
num_nodes = l... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/site/_includes/google-analytics.html | HTML | <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110413294-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/site/blog.html | HTML | ---
layout: default
---
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<embed>
<a href="https://github.com/ray-project/ray"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f7333... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/site/community.html | HTML | ---
layout: default
---
<!-- NOTE THIS FILE IS CURRENTLY EXCLUDED - SEE _CONFIG.YML -->
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<embed>
<a href="https://github.com/ray-project/ray"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/site/css/main.css | CSS | .posts { list-style-type: none; }
.posts li { margin-bottom: 30px; }
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/site/get_ray.html | HTML | ---
layout: default
---
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<embed>
<a href="https://github.com/ray-project/ray"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f7333... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/site/index.html | HTML | ---
layout: default
---
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<embed>
<a href="https://github.com/ray-project/ray"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f7333... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/source/_templates/breadcrumbs.html | HTML | <!-- Based off https://github.com/edx/edx-documentation/. -->
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
{% block breadcrumbs %}
<li><a href="{{ pathto(master_doc) }}" class="icon icon-home"></a> »</li>
{% for doc in parents %}
<li><a href... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/source/_templates/layout.html | HTML | {% extends "!layout.html" %}
{%- block extrahead %}
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110413294-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-110413294-1');
</script>
{% e... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/source/conf.py | Python | # -*- coding: utf-8 -*-
#
# Ray documentation build configuration file, created by
# sphinx-quickstart on Fri Jul 1 13:19:58 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All c... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/source/custom_directives.py | Python | # Originally from:
# github.com/pytorch/tutorials/blob/60d6ef365e36f3ba82c2b61bf32cc40ac4e86c7b/custom_directives.py # noqa
from docutils.parsers.rst import Directive, directives
from docutils.statemachine import StringList
from docutils import nodes
import os
import sphinx_gallery
try:
FileNotFoundError
except Na... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/tools/install-prometheus-server.sh | Shell | #!/usr/bin/env bash
set -x
set -e
TOOLS_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
pushd $TOOLS_DIR
# Download Prometheus server.
unamestr="$(uname)"
if [[ "$unamestr" == "Linux" ]]; then
echo "Downloading Prometheus server for linux system."
PACKAGE_NAME=prometheus-2.8.0.linux-amd64
elif [[ "$unamest... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
doc/yarn/example.py | Python | from collections import Counter
import sys
import time
import ray
@ray.remote
def gethostname(x):
import time
import socket
time.sleep(0.01)
return x + (socket.gethostname(), )
def wait_for_nodes(expected):
# Wait for all nodes to join the cluster.
while True:
num_nodes = len(ray.nod... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/Checkpointable.java | Java | package org.ray.api;
import java.util.List;
import org.ray.api.id.ActorId;
import org.ray.api.id.UniqueId;
public interface Checkpointable {
class CheckpointContext {
/**
* Actor's ID.
*/
public final ActorId actorId;
/**
* Number of tasks executed since last checkpoint.
*/
pu... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/Ray.java | Java | package org.ray.api;
import java.util.List;
import java.util.concurrent.Callable;
import org.ray.api.id.ObjectId;
import org.ray.api.id.UniqueId;
import org.ray.api.runtime.RayRuntime;
import org.ray.api.runtime.RayRuntimeFactory;
import org.ray.api.runtimecontext.RuntimeContext;
/**
* This class contains all public... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/RayActor.java | Java | package org.ray.api;
import org.ray.api.id.ActorId;
import org.ray.api.id.UniqueId;
/**
* A handle to an actor.
*
* @param <T> The type of the concrete actor class.
*/
public interface RayActor<T> {
/**
* @return The id of this actor.
*/
ActorId getId();
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/RayCall.java | Java | // generated automatically, do not modify.
package org.ray.api;
import org.ray.api.function.RayFunc0;
import org.ray.api.function.RayFunc1;
import org.ray.api.function.RayFunc2;
import org.ray.api.function.RayFunc3;
import org.ray.api.function.RayFunc4;
import org.ray.api.function.RayFunc5;
import org.ray.api.functio... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/RayObject.java | Java | package org.ray.api;
import org.ray.api.id.ObjectId;
/**
* Represents an object in the object store.
* @param <T> The object type.
*/
public interface RayObject<T> {
/**
* Fetch the object from the object store, this method will block
* until the object is locally available.
*/
T get();
/**
* G... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/RayPyActor.java | Java | package org.ray.api;
/**
* Handle of a Python actor.
*/
public interface RayPyActor extends RayActor {
/**
* @return Module name of the Python actor class.
*/
String getModuleName();
/**
* @return Name of the Python actor class.
*/
String getClassName();
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/WaitResult.java | Java | package org.ray.api;
import java.util.List;
/**
* Represents the result of a Ray.wait call. It contains 2 lists,
* one containing the locally available objects, one containing the rest.
*/
public final class WaitResult<T> {
private final List<RayObject<T>> ready;
private final List<RayObject<T>> unready;
p... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/annotation/RayRemote.java | Java | package org.ray.api.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines a remote function (when used on a method),
* or an actor (when used o... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/exception/RayActorException.java | Java | package org.ray.api.exception;
/**
* Indicates that the actor died unexpectedly before finishing a task.
*
* This exception could happen either because the actor process dies while executing a task, or
* because a task is submitted to a dead actor.
*/
public class RayActorException extends RayException {
publi... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/exception/RayException.java | Java | package org.ray.api.exception;
/**
* Base class of all ray exceptions.
*/
public class RayException extends RuntimeException {
public RayException(String message) {
super(message);
}
public RayException(String message, Throwable cause) {
super(message, cause);
}
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/exception/RayTaskException.java | Java | package org.ray.api.exception;
/**
* Indicates that a task threw an exception during execution.
*
* If a task throws an exception during execution, a RayTaskException is stored in the object store
* as the task's output. Then when the object is retrieved from the object store, this exception
* will be thrown and ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/exception/RayWorkerException.java | Java | package org.ray.api.exception;
/**
* Indicates that the worker died unexpectedly while executing a task.
*/
public class RayWorkerException extends RayException {
public RayWorkerException() {
super("The worker died unexpectedly while executing this task.");
}
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/exception/UnreconstructableException.java | Java | package org.ray.api.exception;
import org.ray.api.id.ObjectId;
/**
* Indicates that an object is lost (either evicted or explicitly deleted) and cannot be
* reconstructed.
*
* Note, this exception only happens for actor objects. If actor's current state is after object's
* creating task, the actor cannot re-run ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFunc.java | Java | package org.ray.api.function;
import java.io.Serializable;
/**
* Interface of all Ray remote functions.
*/
public interface RayFunc extends Serializable {
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFunc0.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 0 parameter.
*/
@FunctionalInterface
public interface RayFunc0<R> extends RayFunc {
R apply() throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFunc1.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 1 parameter.
*/
@FunctionalInterface
public interface RayFunc1<T0, R> extends RayFunc {
R apply(T0 t0) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFunc2.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 2 parameters.
*/
@FunctionalInterface
public interface RayFunc2<T0, T1, R> extends RayFunc {
R apply(T0 t0, T1 t1) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFunc3.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 3 parameters.
*/
@FunctionalInterface
public interface RayFunc3<T0, T1, T2, R> extends RayFunc {
R apply(T0 t0, T1 t1, T2 t2) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFunc4.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 4 parameters.
*/
@FunctionalInterface
public interface RayFunc4<T0, T1, T2, T3, R> extends RayFunc {
R apply(T0 t0, T1 t1, T2 t2, T3 t3) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFunc5.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 5 parameters.
*/
@FunctionalInterface
public interface RayFunc5<T0, T1, T2, T3, T4, R> extends RayFunc {
R apply(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFunc6.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 6 parameters.
*/
@FunctionalInterface
public interface RayFunc6<T0, T1, T2, T3, T4, T5, R> extends RayFunc {
R apply(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFuncVoid.java | Java | package org.ray.api.function;
/**
* Interface of all `RayFuncVoidX` classes.
*/
public interface RayFuncVoid extends RayFunc {
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFuncVoid0.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 0 parameter.
*/
@FunctionalInterface
public interface RayFuncVoid0 extends RayFuncVoid {
void apply() throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFuncVoid1.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 1 parameter.
*/
@FunctionalInterface
public interface RayFuncVoid1<T0> extends RayFuncVoid {
void apply(T0 t0) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFuncVoid2.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 2 parameters.
*/
@FunctionalInterface
public interface RayFuncVoid2<T0, T1> extends RayFuncVoid {
void apply(T0 t0, T1 t1) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFuncVoid3.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 3 parameters.
*/
@FunctionalInterface
public interface RayFuncVoid3<T0, T1, T2> extends RayFuncVoid {
void apply(T0 t0, T1 t1, T2 t2) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFuncVoid4.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 4 parameters.
*/
@FunctionalInterface
public interface RayFuncVoid4<T0, T1, T2, T3> extends RayFuncVoid {
void apply(T0 t0, T1 t1, T2 t2, T3 t3) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFuncVoid5.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 5 parameters.
*/
@FunctionalInterface
public interface RayFuncVoid5<T0, T1, T2, T3, T4> extends RayFuncVoid {
void apply(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4) throws Exception;
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/function/RayFuncVoid6.java | Java | // generated automatically, do not modify.
package org.ray.api.function;
/**
* Functional interface for a remote function that has 6 parameters.
*/
@FunctionalInterface
public interface RayFuncVoid6<T0, T1, T2, T3, T4, T5> extends RayFuncVoid {
void apply(T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) throws Exceptio... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/id/ActorId.java | Java | package org.ray.api.id;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Random;
public class ActorId extends BaseId implements Serializable {
private static final int UNIQUE_BYTES_LENGTH = 4;
public static final int LENGTH = JobId.LENGTH + UNIQUE_BYTES_LENGTH;
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/id/BaseId.java | Java | package org.ray.api.id;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.xml.bind.DatatypeConverter;
public abstract class BaseId implements Serializable {
private static final long serialVersionUID = 8588849129675565761L;
private final byte[] id;
private int hashCo... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/id/JobId.java | Java | package org.ray.api.id;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;
/**
* Represents the id of a Ray job.
*/
public class JobId extends BaseId implements Serializable {
public static final int LENGTH = 2;
public static final JobId NIL = genNil()... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/id/ObjectId.java | Java | package org.ray.api.id;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Random;
/**
* Represents the id of a Ray object.
*/
public class ObjectId extends BaseId implements Serializable {
public static final int LENGTH = 20;
/**
* Create an ObjectId from a ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/id/TaskId.java | Java | package org.ray.api.id;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.Arrays;
/**
* Represents the id of a Ray task.
*/
public class TaskId extends BaseId implements Serializable {
private static final int UNIQUE_BYTES_LENGTH = 8;
public static final int LENGTH = ActorId.LENGTH + U... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/id/UniqueId.java | Java | package org.ray.api.id;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Random;
/**
* Represents a unique id of all Ray concepts, including
* workers, actors, checkpoints, etc.
*/
public class UniqueId extends BaseId implements Serializable {
public static fina... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/options/ActorCreationOptions.java | Java | package org.ray.api.options;
import java.util.HashMap;
import java.util.Map;
/**
* The options for creating actor.
*/
public class ActorCreationOptions extends BaseTaskOptions {
public static final int NO_RECONSTRUCTION = 0;
public static final int INFINITE_RECONSTRUCTION = (int) Math.pow(2, 30);
// DO NOT s... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/options/BaseTaskOptions.java | Java | package org.ray.api.options;
import java.util.HashMap;
import java.util.Map;
/**
* The options class for RayCall or ActorCreation.
*/
public abstract class BaseTaskOptions {
public final Map<String, Double> resources;
public BaseTaskOptions() {
resources = new HashMap<>();
}
public BaseTaskOptions(Map... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/options/CallOptions.java | Java | package org.ray.api.options;
import java.util.HashMap;
import java.util.Map;
/**
* The options for RayCall.
*/
public class CallOptions extends BaseTaskOptions {
private CallOptions(Map<String, Double> resources) {
super(resources);
}
/**
* This inner class for building CallOptions.
*/
public st... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/runtime/RayRuntime.java | Java | package org.ray.api.runtime;
import java.util.List;
import java.util.concurrent.Callable;
import org.ray.api.RayActor;
import org.ray.api.RayObject;
import org.ray.api.RayPyActor;
import org.ray.api.WaitResult;
import org.ray.api.function.RayFunc;
import org.ray.api.id.ObjectId;
import org.ray.api.id.UniqueId;
import ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/runtime/RayRuntimeFactory.java | Java | package org.ray.api.runtime;
/**
* A factory that produces a RayRuntime instance.
*/
public interface RayRuntimeFactory {
RayRuntime createRayRuntime();
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/runtimecontext/NodeInfo.java | Java | package org.ray.api.runtimecontext;
import java.util.Map;
import org.ray.api.id.UniqueId;
/**
* A class that represents the information of a node.
*/
public class NodeInfo {
public final UniqueId nodeId;
public final String nodeAddress;
public final String nodeHostname;
public final boolean isAlive;
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/api/src/main/java/org/ray/api/runtimecontext/RuntimeContext.java | Java | package org.ray.api.runtimecontext;
import java.util.List;
import org.ray.api.id.ActorId;
import org.ray.api.id.JobId;
/**
* A class used for getting information of Ray runtime.
*/
public interface RuntimeContext {
/**
* Get the current Job ID.
*/
JobId getCurrentJobId();
/**
* Get the current acto... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/cleanup.sh | Shell | # Stop backend processes
ray stop
# Kill Java workers
ps aux | grep DefaultWorker | grep -v grep | awk '{print $2}' | xargs kill -9
# Remove temp files
rm -rf /tmp/ray
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/modify_generated_java_flatbuffers_files.py | Python | import os
import sys
"""
This script is used for modifying the generated java flatbuffer
files for the reason: The package declaration in Java is different
from python and C++, and there is no option in the flatc command
to specify package(namepsace) for Java specially.
USAGE:
python modify_generated_java_flatbuff... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/AbstractRayRuntime.java | Java | package org.ray.runtime;
import java.util.List;
import java.util.concurrent.Callable;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import org.ray.api.RayActor;
import org.ray.api.RayObject;
import org.ray.api.RayPyActor;
import or... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/DefaultRayRuntimeFactory.java | Java | package org.ray.runtime;
import org.ray.api.runtime.RayRuntime;
import org.ray.api.runtime.RayRuntimeFactory;
import org.ray.runtime.config.RayConfig;
import org.ray.runtime.config.RunMode;
import org.ray.runtime.functionmanager.FunctionManager;
import org.ray.runtime.generated.Common.WorkerType;
import org.slf4j.Logg... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/RayDevRuntime.java | Java | package org.ray.runtime;
import java.util.concurrent.atomic.AtomicInteger;
import org.ray.api.RayActor;
import org.ray.api.id.JobId;
import org.ray.api.id.UniqueId;
import org.ray.runtime.config.RayConfig;
import org.ray.runtime.context.LocalModeWorkerContext;
import org.ray.runtime.functionmanager.FunctionManager;
i... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/RayMultiWorkerNativeRuntime.java | Java | package org.ray.runtime;
import java.util.List;
import java.util.concurrent.Callable;
import com.google.common.base.Preconditions;
import org.ray.api.RayActor;
import org.ray.api.RayObject;
import org.ray.api.RayPyActor;
import org.ray.api.WaitResult;
import org.ray.api.function.RayFunc;
import org.ray.api.id.Object... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/RayNativeRuntime.java | Java | package org.ray.runtime;
import com.google.common.base.Preconditions;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.io.FileUtils;
import org.ray.api.RayActor;
import org.ray.api.id.JobId;
import org.ray.api.id.UniqueId;
import org.ray.runtime... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/actor/LocalModeRayActor.java | Java | package org.ray.runtime.actor;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.concurrent.atomic.AtomicReference;
import org.ray.api.RayActor;
import org.ray.api.id.ActorId;
import org.ray.api.id.ObjectId;
import org.ray.api.id.Unique... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/actor/NativeRayActor.java | Java | package org.ray.runtime.actor;
import com.google.common.base.Preconditions;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.List;
import org.ray.api.Ray;
import org.ray.api.RayActor;
import org.ray.api.id.ActorId;
import org.ray.api.r... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/actor/NativeRayActorSerializer.java | Java | package org.ray.runtime.actor;
import java.io.IOException;
import org.nustaq.serialization.FSTBasicObjectSerializer;
import org.nustaq.serialization.FSTClazzInfo;
import org.nustaq.serialization.FSTClazzInfo.FSTFieldInfo;
import org.nustaq.serialization.FSTObjectInput;
import org.nustaq.serialization.FSTObjectOutput;
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/actor/NativeRayJavaActor.java | Java | package org.ray.runtime.actor;
import com.google.common.base.Preconditions;
import java.io.IOException;
import java.io.ObjectInput;
import org.ray.runtime.generated.Common.Language;
/**
* RayActor Java implementation for cluster mode.
*/
public class NativeRayJavaActor extends NativeRayActor {
NativeRayJavaActor... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/actor/NativeRayPyActor.java | Java | package org.ray.runtime.actor;
import com.google.common.base.Preconditions;
import java.io.IOException;
import java.io.ObjectInput;
import org.ray.api.RayPyActor;
import org.ray.runtime.generated.Common.Language;
/**
* RayActor Python implementation for cluster mode.
*/
public class NativeRayPyActor extends NativeR... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/config/RayConfig.java | Java | package org.ray.runtime.config;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigFactory;
import com.typesafe.config.ConfigV... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/config/RunMode.java | Java | package org.ray.runtime.config;
public enum RunMode {
/**
* Ray is running in one single Java process, without Raylet backend, object store, and GCS.
* It's useful for debug.
*/
SINGLE_PROCESS,
/**
* Ray is running on one or more nodes, with multiple processes.
*/
CLUSTER,
}
| zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/context/LocalModeWorkerContext.java | Java | package org.ray.runtime.context;
import com.google.common.base.Preconditions;
import org.ray.api.id.ActorId;
import org.ray.api.id.JobId;
import org.ray.api.id.TaskId;
import org.ray.api.id.UniqueId;
import org.ray.runtime.generated.Common.TaskSpec;
import org.ray.runtime.generated.Common.TaskType;
import org.ray.runt... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/context/NativeWorkerContext.java | Java | package org.ray.runtime.context;
import java.nio.ByteBuffer;
import org.ray.api.id.ActorId;
import org.ray.api.id.JobId;
import org.ray.api.id.TaskId;
import org.ray.api.id.UniqueId;
import org.ray.runtime.generated.Common.TaskType;
/**
* Worker context for cluster mode. This is a wrapper class for worker context of... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/context/RuntimeContextImpl.java | Java | package org.ray.runtime.context;
import com.google.common.base.Preconditions;
import java.util.List;
import org.ray.api.id.ActorId;
import org.ray.api.id.JobId;
import org.ray.api.runtimecontext.NodeInfo;
import org.ray.api.runtimecontext.RuntimeContext;
import org.ray.runtime.AbstractRayRuntime;
import org.ray.runtim... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/context/WorkerContext.java | Java | package org.ray.runtime.context;
import org.ray.api.id.ActorId;
import org.ray.api.id.JobId;
import org.ray.api.id.TaskId;
import org.ray.api.id.UniqueId;
import org.ray.runtime.generated.Common.TaskType;
/**
* The context of worker.
*/
public interface WorkerContext {
/**
* ID of the current worker.
*/
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/functionmanager/FunctionDescriptor.java | Java | package org.ray.runtime.functionmanager;
import java.util.List;
import org.ray.runtime.generated.Common.Language;
/**
* Base interface of a Ray task's function descriptor.
*
* A function descriptor is a list of strings that can uniquely describe a function. It's used to
* load a function in workers.
*/
public in... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/functionmanager/FunctionManager.java | Java | package org.ray.runtime.functionmanager;
import com.google.common.base.Strings;
import java.io.File;
import java.lang.invoke.SerializedLambda;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import j... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/functionmanager/JavaFunctionDescriptor.java | Java | package org.ray.runtime.functionmanager;
import com.google.common.base.Objects;
import com.google.common.collect.ImmutableList;
import java.util.List;
import org.ray.runtime.generated.Common.Language;
/**
* Represents metadata of Java function.
*/
public final class JavaFunctionDescriptor implements FunctionDescrip... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/functionmanager/PyFunctionDescriptor.java | Java | package org.ray.runtime.functionmanager;
import java.util.Arrays;
import java.util.List;
import org.ray.runtime.generated.Common.Language;
/**
* Represents metadata of a Python function.
*/
public class PyFunctionDescriptor implements FunctionDescriptor {
public String moduleName;
public String className;
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/functionmanager/RayFunction.java | Java | package org.ray.runtime.functionmanager;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
import java.lang.reflect.Method;
import org.ray.api.annotation.RayRemote;
/**
* Represents a Ray function (either a Method or a Constructor in Java) and its metadata.
*/
public class RayFunction {
... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/gcs/GcsClient.java | Java | package org.ray.runtime.gcs;
import com.google.common.base.Preconditions;
import com.google.protobuf.InvalidProtocolBufferException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.apache.commons.lang3.ArrayUtils;
import ... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/gcs/GcsClientOptions.java | Java | package org.ray.runtime.gcs;
import org.ray.runtime.config.RayConfig;
/**
* Options to create GCS Client.
*/
public class GcsClientOptions {
public String ip;
public int port;
public String password;
public GcsClientOptions(RayConfig rayConfig) {
ip = rayConfig.getRedisIp();
port = rayConfig.getRed... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/gcs/RedisClient.java | Java | package org.ray.runtime.gcs;
import com.google.common.base.Strings;
import java.util.List;
import java.util.Map;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
/**
* Redis client class.
*/
public class RedisClient {
private static final int JED... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/object/LocalModeObjectStore.java | Java | package org.ray.runtime.object;
import com.google.common.base.Preconditions;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import org.ray.api.id.ObjectId;
import org.ray.run... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta | |
java/runtime/src/main/java/org/ray/runtime/object/NativeObjectStore.java | Java | package org.ray.runtime.object;
import java.util.List;
import java.util.stream.Collectors;
import org.ray.api.id.BaseId;
import org.ray.api.id.ObjectId;
import org.ray.runtime.context.WorkerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Object store methods for cluster mode. This is a wrappe... | zhuohan123/hoplite-rllib | 3 | Python | zhuohan123 | Zhuohan Li | vLLM / Meta |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.