i'm having bitsandbytes error while using unsloth in conda
Im trying to finetune llama3 model from Unsloth uding the code presented in one of there colab notebooks but im having several issues while running the code on my system.Following is the error i'm...
View ArticleHow to rotate colorbar to align with plot_surface in 3d plot
I would like to plot a colorbar next to an image plotted with plot_surface in a 3d plot, such that the colorbar also rotates with the plot_surface image when the 3d axes are rotated.So far, my code...
View ArticleGeoDataFrame conversion to polars with from_pandas fails with ArrowTypeError:...
I try to convert a GeoDataFrame to a polars DataFrame with from_pandas. I receive an ArrowTypeError: Did not pass numpy.dtype object exception. So I can continue working against the polars API.Expected...
View ArticleHow to reverse a NumPy array using stride_tricks.as_strided
Is it possible to reverse an array using as_strided in NumPy? I tried the following and got garbage resultsNote : I am aware of indexing tricks like ::-1, but what to know if this can be achieved thru...
View ArticleHow do i resolve this error and get my code running
The specified module could not be found. Error loading "C:\Users\mechg\OneDrive\Desktop\modeltesting\env\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.when i am running a python...
View Articlethe documented example of vespa is not working
I'm trying to replicate one of the documented examples. But it is not working at all.Kind of weird as the documented example is throwing off these Error.the issue is at max_simRuntimeError: Deployment...
View Articlesession Crashing: while installing python version 3.7 and transformers...
I am working on a project for Meta Review Generation. I have picked my base paper as "MReD: A Meta-Review Dataset for Structure-Controllable Text Generation", the code and the data are give in the...
View Article1D signal convolution using Pytorch
I am learning the signal convolution and I am little bit confusing the different between Pytorch functional conv1d and scipy convolution. What I know for sure is pytorch conv1d is actually calculating...
View ArticleOpen CV Image color filter to extract precise area under each color
I have some GPR (ground-penetrating RADAR) data set in .jpg format[Imge attached]. Need to read them and feed them to an Excel sheet. I need each color's rectangle length by pixel value to process the...
View ArticlePandas replace zero as the nearest average non-zero value
I have a dataframe: df = pd.DataFrame({'A':[0,0,15,0,0,12,0,0,0,5]})And I want to replace the 0 value with the nearest non zero value,For example, the first value is 0, then I find the the nearest...
View ArticleHow to solve this error i got this error whille using mediapipe
ImageToTensorCalculator:Output tensor range is requiredConstantSidePacketCalculator: Number of output side packets has to be same as number of packets configured in options how to solve this error...
View ArticleMicrosoft.Azure.WebJobs.Script: WorkerConfig for runtime: python not found
I have Function App of Python v2 and docker based.function_app.py:import loggingimport timeimport azure.functions as funcfrom selenium import webdriverimport chromedriver_autoinstallerapp =...
View ArticlePython Django migration error
django.db.utils.OperationalError: (1553, "Cannot drop index 'star_ratings_userrating_user_id_5a83a88db79dd2cf_uniq': needed in a foreign key constraint")I have installed an application in my project...
View ArticleEfficiently Counting Element Occurrences in a Python List Without Loops...
I'm working on a Python project where I need to count the occurrences of each element in a list efficiently, without resorting to traditional looping constructs. Here are the specifics:Input: I have a...
View ArticleIs there a way to create a break when conditions are met?
import turtlet = turtleWidth = int(t.numinput("Cartesain Coordinates", "Enter Width",200, minval = 200, maxval = 400))Height = int(t.numinput("Cartesain Coordinates", "Enter Height", 200, minval = 200,...
View ArticleJinja2 inline comments
How can I put comments inside Jinja2 argument list declaration ?Everything I have tried gives an error:jinja2.exceptions.TemplateSyntaxError: unexpected char u'#'{{ Switch('var', [('1', 'foo'), #...
View ArticleHow to redirect django to Google directly with Allauth
I don't have a code problem but a little aesthetic, I'm trying to make a simple login to an app with Django and be able to enter with Google and when I put the label to enter I would like it to direct...
View ArticleTrouble with prefilters in MongoDB Atlas and Langchain: 'Path needs to be...
How do I use prefilters with langchain and mongodb atlas?Here's my example models:class Question(Document): content = StringField(required=True)class ResponseFragment(Document): question =...
View ArticleExtract very large zip file on AWS S3 using Lamda Functions
I'm trying to read a very large zip file on a s3 bucket and extract its data on another s3 bucket using the code below as lambda function:import jsonimport boto3from io import BytesIOimport zipfiledef...
View ArticlePyotp Microsoft Authenticator not displaying Logo after Scanning QR
I am using Pyotp python package to generate OTP's using python, the generated QR is perfectly working fine, Microsoft authenticator can add the required information and code matches as expected the...
View Article