aws-neuron / CodeLlama-7b-hf-neuron-8xlarge

huggingface.co
Total runs: 41
24-hour runs: 2
7-day runs: 2
30-day runs: 13
Model's Last Updated: April 02 2024
text-generation

Introduction of CodeLlama-7b-hf-neuron-8xlarge

Model Details of CodeLlama-7b-hf-neuron-8xlarge

Neuronx model for codellama/CodeLlama-7b-hf

This repository contains AWS Inferentia2 and neuronx compatible checkpoints for codellama/CodeLlama-7b-hf . You can find detailed information about the base model on its Model Card .

This model has been exported to the neuron format using specific input_shapes and compiler parameters detailed in the paragraphs below.

It has been compiled to run on an inf2.8xlarge instance on AWS. It also runs on an inf2.xlarge (the smallest Inferentia2 instance), but it pretty much maxes out the RAM. Be sure to test before using in production on the smaller instance.

Please refer to the 🤗 optimum-neuron documentation for an explanation of these parameters.

Usage on Amazon SageMaker

coming soon

Usage with 🤗 optimum-neuron
from optimum.neuron import pipeline

p = pipeline('text-generation', 'aws-neuron/CodeLlama-7b-hf-neuron-8xlarge')
p("import socket\n\ndef ping_exponential_backoff(host: str):",
    do_sample=True,
    top_k=10,
    temperature=0.1,
    top_p=0.95,
    num_return_sequences=1,
    max_length=200,
)
[{'generated_text': 'import socket\n\ndef ping_exponential_backoff(host: str):\n    """\n    Ping a host with exponential backoff.\n\n    :param host: Host to ping\n    :return: True if host is reachable, False otherwise\n    """\n    for i in range(1, 10):\n        try:\n            socket.create_connection((host, 80), 1).close()\n            return True\n        except OSError:\n            time.sleep(2 ** i)\n    return False\n\n\ndef ping_exponential_backoff_with_timeout(host: str, timeout: int):\n    """\n    Ping a host with exponential backoff and timeout.\n\n    :param host: Host to ping\n    :param timeout: Timeout in seconds\n    :return: True if host is reachable, False otherwise\n    """\n    for'}]

This repository contains tags specific to versions of neuronx . When using with 🤗 optimum-neuron , use the repo revision specific to the version of neuronx you are using, to load the right serialized checkpoints.

Arguments passed during export

input_shapes

{
  "batch_size": 1,
  "sequence_length": 2048,
}

compiler_args

{
  "auto_cast_type": "fp16",
  "num_cores": 2,
}

Runs of aws-neuron CodeLlama-7b-hf-neuron-8xlarge on huggingface.co

41
Total runs
2
24-hour runs
5
3-day runs
2
7-day runs
13
30-day runs

More Information About CodeLlama-7b-hf-neuron-8xlarge huggingface.co Model

More CodeLlama-7b-hf-neuron-8xlarge license Visit here:

https://choosealicense.com/licenses/llama2

CodeLlama-7b-hf-neuron-8xlarge huggingface.co

CodeLlama-7b-hf-neuron-8xlarge huggingface.co is an AI model on huggingface.co that provides CodeLlama-7b-hf-neuron-8xlarge's model effect (), which can be used instantly with this aws-neuron CodeLlama-7b-hf-neuron-8xlarge model. huggingface.co supports a free trial of the CodeLlama-7b-hf-neuron-8xlarge model, and also provides paid use of the CodeLlama-7b-hf-neuron-8xlarge. Support call CodeLlama-7b-hf-neuron-8xlarge model through api, including Node.js, Python, http.

CodeLlama-7b-hf-neuron-8xlarge huggingface.co Url

https://huggingface.co/aws-neuron/CodeLlama-7b-hf-neuron-8xlarge

aws-neuron CodeLlama-7b-hf-neuron-8xlarge online free

CodeLlama-7b-hf-neuron-8xlarge huggingface.co is an online trial and call api platform, which integrates CodeLlama-7b-hf-neuron-8xlarge's modeling effects, including api services, and provides a free online trial of CodeLlama-7b-hf-neuron-8xlarge, you can try CodeLlama-7b-hf-neuron-8xlarge online for free by clicking the link below.

aws-neuron CodeLlama-7b-hf-neuron-8xlarge online free url in huggingface.co:

https://huggingface.co/aws-neuron/CodeLlama-7b-hf-neuron-8xlarge

CodeLlama-7b-hf-neuron-8xlarge install

CodeLlama-7b-hf-neuron-8xlarge is an open source model from GitHub that offers a free installation service, and any user can find CodeLlama-7b-hf-neuron-8xlarge on GitHub to install. At the same time, huggingface.co provides the effect of CodeLlama-7b-hf-neuron-8xlarge install, users can directly use CodeLlama-7b-hf-neuron-8xlarge installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

CodeLlama-7b-hf-neuron-8xlarge install url in huggingface.co:

https://huggingface.co/aws-neuron/CodeLlama-7b-hf-neuron-8xlarge

Url of CodeLlama-7b-hf-neuron-8xlarge

CodeLlama-7b-hf-neuron-8xlarge huggingface.co Url

Provider of CodeLlama-7b-hf-neuron-8xlarge huggingface.co

aws-neuron
ORGANIZATIONS

Other API from aws-neuron