Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LaurentMazare/xla-rs
/ functions
Functions
409 in github.com/LaurentMazare/xla-rs
⨍
Functions
409
◇
Types & classes
59
↓ 1 callers
Function
constant_literal
xla_rs/xla_rs.cc:180
↓ 1 callers
Function
convert_state_dict
(state_dict: Dict[str, torch.Tensor], dtype: torch.dtype = torch.float16)
examples/llama/convert_checkpoint.py:11
↓ 1 callers
Function
convert_weights
(llama_ckpt, *, output_npz: Path = Path("llama.npz"), dtype: str = "float16")
examples/llama/convert_checkpoint.py:56
↓ 1 callers
Method
decode
The inverse of the tokenization process, takes as input a list of tokens and returns a string that produces this tokenization.
examples/nanogpt/tokenizer.rs:390
↓ 1 callers
Method
element_type
The element type used by element stored in this literal.
src/wrappers/literal.rs:82
↓ 1 callers
Method
encode
Run bpe on the whole string, very very inefficient but should be good enough for prompts. The original string should first be split on whitespace/...
examples/llama/sentencepiece.rs:140
↓ 1 callers
Method
encode
The main tokenization entry point, takes as input a string and returns the list of tokens.
examples/nanogpt/tokenizer.rs:379
↓ 1 callers
Function
env_var_rerun
(name: &str)
build.rs:55
↓ 1 callers
Function
execute
xla_rs/xla_rs.cc:890
↓ 1 callers
Function
execute_b
xla_rs/xla_rs.cc:923
↓ 1 callers
Method
execute_b
( &self, args: &[L], )
src/wrappers/pjrt_loaded_executable.rs:54
↓ 1 callers
Function
first_error
xla_rs/xla_rs.cc:880
↓ 1 callers
Method
first_error
This returns `Ok(())` if the graph creation has not generated any error so far. Otherwise the first error is returned.
src/wrappers/xla_builder.rs:36
↓ 1 callers
Method
forward
(&self, indexes: &XlaOp)
examples/llama/main.rs:115
↓ 1 callers
Method
forward
(&self, indexes: &XlaOp)
examples/nanogpt/main.rs:43
↓ 1 callers
Method
gather
( &self, start_indices: &XlaOp, offset_dims: &[i64], collapsed_slice_dims: &[i
src/wrappers/xla_op.rs:465
↓ 1 callers
Function
get_current_status
xla_rs/xla_rs.cc:885
↓ 1 callers
Function
get_dimensions
xla_rs/xla_rs.cc:855
↓ 1 callers
Function
get_dimensions_size
xla_rs/xla_rs.cc:849
↓ 1 callers
Method
get_dims
The dimension sizes associated with this op.
src/wrappers/xla_builder.rs:218
↓ 1 callers
Function
get_element_type
xla_rs/xla_rs.cc:842
↓ 1 callers
Method
get_primitive_type
The element type associated with this op.
src/wrappers/xla_builder.rs:227
↓ 1 callers
Function
get_shape
xla_rs/xla_rs.cc:836
↓ 1 callers
Function
gpt_computation
(vs: VarStore, bsize: i64)
examples/nanogpt/main.rs:252
↓ 1 callers
Function
hlo_module_proto_free
xla_rs/xla_rs.cc:1081
↓ 1 callers
Function
hlo_module_proto_parse_and_return_unverified_module
xla_rs/xla_rs.cc:1039
↓ 1 callers
Function
hlo_module_proto_parse_proto
xla_rs/xla_rs.cc:1047
↓ 1 callers
Method
id
The device unique identifier.
src/wrappers/pjrt_device.rs:12
↓ 1 callers
Function
infeed
xla_rs/xla_rs.cc:271
↓ 1 callers
Method
internal_error
An error node, using the 'internal error' error type.
src/wrappers/xla_builder.rs:179
↓ 1 callers
Method
into_store
(self)
examples/llama/var_store.rs:67
↓ 1 callers
Method
layer_norm
Layer normalization, this normalizes values on the target dimension to be of zero mean and standard deviation one, and then scales the result by `scal
src/wrappers/xla_op.rs:582
↓ 1 callers
Function
literal_clone
xla_rs/xla_rs.cc:968
↓ 1 callers
Function
literal_convert
xla_rs/xla_rs.cc:980
↓ 1 callers
Function
literal_copy_from
xla_rs/xla_rs.cc:1007
↓ 1 callers
Function
literal_copy_to
xla_rs/xla_rs.cc:1003
↓ 1 callers
Function
literal_create_from_shape
xla_rs/xla_rs.cc:947
↓ 1 callers
Function
literal_create_from_shape_and_data
xla_rs/xla_rs.cc:955
↓ 1 callers
Function
literal_decompose_tuple
xla_rs/xla_rs.cc:994
↓ 1 callers
Function
literal_element_count
xla_rs/xla_rs.cc:986
↓ 1 callers
Function
literal_element_type
xla_rs/xla_rs.cc:1001
↓ 1 callers
Function
literal_free
xla_rs/xla_rs.cc:1025
↓ 1 callers
Function
literal_make_tuple_owned
xla_rs/xla_rs.cc:1016
↓ 1 callers
Function
literal_reshape
xla_rs/xla_rs.cc:972
↓ 1 callers
Function
literal_shape
xla_rs/xla_rs.cc:990
↓ 1 callers
Function
literal_size_bytes
xla_rs/xla_rs.cc:988
↓ 1 callers
Function
llama_computation
(args: &Args, bsize: i64)
examples/llama/main.rs:343
↓ 1 callers
Method
load_from_npz
( &mut self, path: P, c: &PjRtClient, )
examples/llama/var_store.rs:106
↓ 1 callers
Method
local_hardware_id
(&self)
src/wrappers/pjrt_device.rs:20
↓ 1 callers
Function
make_shape_array
xla_rs/xla_rs.cc:244
↓ 1 callers
Function
make_shape_tuple
xla_rs/xla_rs.cc:248
↓ 1 callers
Function
make_shared_lib
(os: OS, xla_dir: P)
build.rs:26
↓ 1 callers
Function
masked_fill
(on_false: &XlaOp, mask: &XlaOp, on_true: T)
examples/llama/main.rs:197
↓ 1 callers
Function
masked_fill
(on_false: &XlaOp, mask: &XlaOp, on_true: T)
examples/nanogpt/main.rs:106
↓ 1 callers
Method
max_value
A scalar node with the maximum value for the associated type.
src/wrappers/xla_builder.rs:152
↓ 1 callers
Method
maybe_keep_dims
(&self, res: XlaOp, dims_to_keep: &[i64], keep_dims: bool)
src/wrappers/xla_op.rs:513
↓ 1 callers
Method
min_value
A scalar node with the minimum value for the associated type.
src/wrappers/xla_builder.rs:146
↓ 1 callers
Function
new_gelu
(x: &XlaOp)
examples/nanogpt/main.rs:24
↓ 1 callers
Method
normalize_indexes
(&self, indexes: &[i64])
src/wrappers/xla_op.rs:307
↓ 1 callers
Function
op_broadcast
xla_rs/xla_rs.cc:604
↓ 1 callers
Function
op_broadcast_in_dim
xla_rs/xla_rs.cc:610
↓ 1 callers
Function
op_clamp
xla_rs/xla_rs.cc:632
↓ 1 callers
Function
op_clone
xla_rs/xla_rs.cc:579
↓ 1 callers
Function
op_collapse
xla_rs/xla_rs.cc:620
↓ 1 callers
Function
op_concat_in_dim
xla_rs/xla_rs.cc:669
↓ 1 callers
Function
op_conditional
xla_rs/xla_rs.cc:807
↓ 1 callers
Function
op_convert_element_type
xla_rs/xla_rs.cc:722
↓ 1 callers
Function
op_dimensions_size
xla_rs/xla_rs.cc:728
↓ 1 callers
Function
op_dot_general
xla_rs/xla_rs.cc:363
↓ 1 callers
Function
op_einsum1
xla_rs/xla_rs.cc:561
↓ 1 callers
Function
op_einsum2
xla_rs/xla_rs.cc:567
↓ 1 callers
Function
op_gather
xla_rs/xla_rs.cc:697
↓ 1 callers
Function
op_get_tuple_element
xla_rs/xla_rs.cc:691
↓ 1 callers
Function
op_internal_error
xla_rs/xla_rs.cc:743
↓ 1 callers
Function
op_invalid_argument_error
xla_rs/xla_rs.cc:755
↓ 1 callers
Function
op_iota
xla_rs/xla_rs.cc:791
↓ 1 callers
Function
op_iota1
xla_rs/xla_rs.cc:785
↓ 1 callers
Function
op_max_value
xla_rs/xla_rs.cc:779
↓ 1 callers
Function
op_min_value
xla_rs/xla_rs.cc:773
↓ 1 callers
Function
op_one
xla_rs/xla_rs.cc:767
↓ 1 callers
Function
op_reduce
xla_rs/xla_rs.cc:734
↓ 1 callers
Function
op_reshape
xla_rs/xla_rs.cc:598
↓ 1 callers
Function
op_rng_normal
xla_rs/xla_rs.cc:653
↓ 1 callers
Function
op_rng_uniform
xla_rs/xla_rs.cc:644
↓ 1 callers
Function
op_select
xla_rs/xla_rs.cc:638
↓ 1 callers
Function
op_slice_in_dim
xla_rs/xla_rs.cc:662
↓ 1 callers
Function
op_transpose
xla_rs/xla_rs.cc:626
↓ 1 callers
Function
op_tuple
xla_rs/xla_rs.cc:681
↓ 1 callers
Function
op_unknown_error
xla_rs/xla_rs.cc:749
↓ 1 callers
Function
op_while
xla_rs/xla_rs.cc:800
↓ 1 callers
Function
op_zero
xla_rs/xla_rs.cc:761
↓ 1 callers
Function
outfeed
xla_rs/xla_rs.cc:279
↓ 1 callers
Function
parameter
xla_rs/xla_rs.cc:256
↓ 1 callers
Function
parameter_s
xla_rs/xla_rs.cc:264
↓ 1 callers
Function
pjrt_buffer_copy_raw_to_host_sync
xla_rs/xla_rs.cc:136
↓ 1 callers
Function
pjrt_buffer_copy_to_device
xla_rs/xla_rs.cc:129
↓ 1 callers
Function
pjrt_buffer_free
xla_rs/xla_rs.cc:142
↓ 1 callers
Function
pjrt_buffer_from_host_literal
xla_rs/xla_rs.cc:109
↓ 1 callers
Function
pjrt_buffer_on_device_shape
xla_rs/xla_rs.cc:125
↓ 1 callers
Function
pjrt_buffer_to_literal_sync
xla_rs/xla_rs.cc:118
← previous
next →
101–200 of 409, ranked by callers