Skip to content

Correct typo enbedding -> embedding #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jetstream_pt/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def create_quantized_from_nn_linear(
return obj


def get_quantized_enbedding_layer(config: "QuantizationConfig"):
def get_quantized_embedding_layer(config: "QuantizationConfig"):
if not config.enable_weight_quantization:
return nn.Embedding
else:
Expand Down
4 changes: 2 additions & 2 deletions jetstream_pt/third_party/llama/model_exportable.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
RMSNorm,
WeightOnlyBlockwiseQuantizedLinear,
WeightOnlyPerChannelQuantizedLinear,
get_quantized_enbedding_layer,
get_quantized_embedding_layer,
get_quantized_linear_layer,
)
from torch import nn
Expand Down Expand Up @@ -188,7 +188,7 @@ def __init__(
self.vocab_size = params.vocab_size
self.n_layers = params.n_layers

Embedding = get_quantized_enbedding_layer(env.quant_config)
Embedding = get_quantized_embedding_layer(env.quant_config)
self.tok_embeddings = Embedding(
params.vocab_size,
params.dim,
Expand Down
4 changes: 2 additions & 2 deletions jetstream_pt/third_party/mixtral/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from torch import Tensor
from torch.nn import functional as F
from .config import ModelArgs, find_multiple
from jetstream_pt.layers import Attention, get_quantized_linear_layer, get_quantized_enbedding_layer
from jetstream_pt.layers import Attention, get_quantized_linear_layer, get_quantized_embedding_layer

import jax

Expand All @@ -33,7 +33,7 @@ def __init__(self, config: ModelArgs, env) -> None:
self.config = config
self.env = env

Embedding = get_quantized_enbedding_layer(env.quant_config)
Embedding = get_quantized_embedding_layer(env.quant_config)
self.tok_embeddings = Embedding(
config.vocab_size, config.dim, device=config.device
)
Expand Down
Loading