notebooks
notebooks copied to clipboard
Notebooks using the Hugging Face libraries 🤗
I'm looking at this example: https://github.com/huggingface/notebooks/blob/main/sagemaker/12_batch_transform_inference/sagemaker-notebook.ipynb I am trying to get something similar working, but with the `MultiRecord` BatchStrategy. Attempt No. 1: ```python transformer = Transformer(model_name=model_name, instance_count=instance_count, instance_type=instance_type, strategy='MultiRecord', assemble_with='Line',...
I get this error when I used table-question-answering "google/tapas-base-finetuned-wtq". ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (400) from primary with message "{ "code": 400,...
# What does this PR do? Add necessary steps. Fixes # (issue) running the notebook in colab, failure will show up. ``` ImportError Traceback (most recent call last) [](https://localhost:8080/#) in...
I used the sam notebook for inference and I wonder how can the iou_scores are greater than 1? In examples, given in sam notebooks, iou_scores are greater than 1, is...
I extended the training and evaluation process here [https://huggingface.co/transformers/custom_datasets.html#fine-tuning-with-native-pytorch-tensorflow](url) to save the fine-tuned model and use it for prediction separately. Here is the code for it. ``` true_labels, predicted_labels =...
error i face while training sentence transformer model using "SetFitTrainer" and importing model with "SetfitModel" throws following error: Traceback (most recent call last): File "train-setfit.py", line 81, in from setfit...
Thank you for the helpful examples! I have a question regarding: https://github.com/huggingface/notebooks/blob/main/examples/text_classification.ipynb Specifically, under the `Hyperparameter search` section, I wonder if it is expected behavior that the model is initialized...
https://github.com/huggingface/notebooks/blob/main/examples/multiple_choice.ipynb I think when we do tokenizer.pad in collator , its a slow operation so there is warning that suggests that when we do tokenizer( ) we can always padding...
…ment analysis model using Pytorch 2.0 # What does this PR do? This PR adds a notebook that walks a user how to benchmark a Hugging Face sentiment analysis model...
got index out of range on this code, index had decremented to -385, so test is missing on index > 0. that fixed my problem. see line 1050 and there...