Downloads · 30 days
0
Theguys808/WalkNam
WalkNam is a machine learning model from Theguys808. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as bigscience-bloom-rail-1.0.
--- license: creativeml-openrail-m ---import json import sagemaker import boto3 from sagemaker.huggingface import HuggingFaceModel, gethuggingfacellmimageuri
Downloads · 30 days
0
Access
Public
Updated Feb 10, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 63%
From the Hugging Face model README
license: creativeml-openrail-m ---import json import sagemaker import boto3 from sagemaker.huggingface import HuggingFaceModel, get_huggingface_llm_image_uri
try: role = sagemaker.get_execution_role() except ValueError: iam = boto3.client('iam') role = iam.get_role(RoleName='sagemaker_execution_role')['Role']['Arn']
hub = { 'HF_MODEL_ID':'intfloat/multilingual-e5-small' }
huggingface_model = HuggingFaceModel( image_uri=get_huggingface_llm_image_uri("huggingface-tei",version="1.2.3"), env=hub, role=role, )
predictor = huggingface_model.deploy( initial_instance_count=1, instance_type="ml.g5.2xlarge", )
predictor.predict({ "inputs": "My name is Clara and I am", })