Downloads · 30 days
0
UchuuKira177/kuwa
kuwa is a machine learning model from UchuuKira177. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
import sagemaker from sagemaker.huggingface import HuggingFace
Downloads · 30 days
0
Access
Public
Updated Sep 15, 2022
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.4 KB · 59%
From the Hugging Face model README
import sagemaker from sagemaker.huggingface import HuggingFace
role = sagemaker.get_execution_role() hyperparameters = { 'model_name_or_path':'Grossmend/rudialogpt3_medium_based_on_gpt2', 'output_dir':'/opt/ml/model' # add your remaining hyperparameters # more info here https://github.com/huggingface/transformers/tree/v4.17.0/examples/pytorch/language-modeling }
git_config = {'repo': 'https://github.com/huggingface/transformers.git','branch': 'v4.17.0'}
huggingface_estimator = HuggingFace( entry_point='run_clm.py', source_dir='./examples/pytorch/language-modeling', instance_type='ml.p3.2xlarge', instance_count=1, role=role, git_config=git_config, transformers_version='4.17.0', pytorch_version='1.10.2', py_version='py38', hyperparameters = hyperparameters )
huggingface_estimator.fit()