Skip to main content
Just browsing Stack Overflow? Help us improve your experience. Sign up for research
Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Runtime Error: chuck expects at least a 1-dimensional tensor while fine tuning Llama using transformers

I'm fine tuning a Llama-3.2-3B-Instruct model with a custom dataset. The training script works on one GPU (out of memory, which is possible), but fails with RuntimeError: chunk expects at least a 1-...
majTheHero's user avatar
0 votes
0 answers
7 views

Using DataSource in bokeh library for color, alpha and other properties

So far in python's bokeh library I've used a patch method to draw some objects, but the current solution runs in a for loop which is not optimal for this library: for data_point in data_points: ...
elaspog's user avatar
  • 1,697
0 votes
0 answers
6 views

Python OPC-UA : authentification

I'm trying to set up authentication for my OPC-UA server. I don't want my clients to be able to connect to my server in �?anonymous’ mode. So I used this configuration in my opc-ua server: I'm testing ...
Autolab's user avatar
  • 41
-1 votes
1 answer
13 views

Fast api-axios- GET call- 422 unprocessable entity

I have a api end point to retrieve values from a database: class infintiescroll(BaseModel): offset: Optional[int] = 0 @app.get("/api/allposts", status_code=status.HTTP_200_OK) async ...
 C A OB1's user avatar
-1 votes
0 answers
12 views

Data Scrapping from a website with graphs not able to understand the approach?

I want to scrape some data from a website for some data analysis but I'm unsure of the approach. The website is https://worldhealthorg.shinyapps.io/mpx_global/#5_Detailed_case_data kindly have a look. ...
blackishgray's user avatar
0 votes
0 answers
8 views

How do I create an infrence model for this encoder decoder model

encoder_inputs = tfl.Input(shape=(65 , )) encoder_embedding = tfl.Embedding(4862, 256, mask_zero=True)(encoder_inputs) encoder_outputs, state_h, state_c = tfl.LSTM(200, return_state=True)(...
S K M's user avatar
  • 3
0 votes
0 answers
20 views

Why is my code giving a memory error when it was working previously?

I have this python script where I have RNA seq data with 54,000 genes and have to do a pairwise correlation with each pair of genes: import matplotlib.pyplot as plt import pandas as pd import numpy as ...
Kia Eshraghi's user avatar
0 votes
0 answers
9 views

Data is not saved in Flipkart script in python

I am working on a Python script to fetch product prices using Selenium. However, I am encountering a timeout error when using EC.presence_of_element_located. Here’s the relevant portion of wait.until(...
NEEL PARMAR's user avatar
-1 votes
0 answers
17 views

How are Python methods passed as function arguments still aware of their instance (self) context? [duplicate]

I have encountered what would reduce to the following code class Rectangle: def __init__(self, length, width, **kwargs): self.length = length self.width = width super()....
Blue_Elephant's user avatar
0 votes
0 answers
16 views

Hosting a webserver from company DMZ [closed]

I know there are some threads about this at SO already, but they are a bit old and none deals with Shiny for Python. I made a webapp using Shiny for Python, which can now run on a virtual linux server ...
gernophil's user avatar
  • 473
0 votes
0 answers
9 views

VSCode Jupyter Notebook Markdown display two layers of text overlapping each other

I have been using VSCode Jupyter Notebook for coding. Recently when I open an .ipynb file, the markdown shows "ghosting", which means two layers of text overlapping each other. It only ...
J Peg's user avatar
  • 7
1 vote
1 answer
21 views

How to import multiple records with MERGE function to an oracle DB via Python

I am trying to import data from a .csv file into an Oracle DB using Python. So far it works fine if the .csv file contains 10 records. If I increase the number of records in the .csv file to 1.000.000,...
Jegor Wieler's user avatar
0 votes
0 answers
15 views

Redis: Cannot release a lock that's no longer owned

I'm trying to lock certain key. I have httpx.Auth subclass: from redis.asyncio import Redis from httpx import AsyncClient, Auth def get_redis_client(): return Redis(host=settings.redis_host, port=...
1 vote
1 answer
23 views

Python async performance doubts

I'm running an websocket application through Django Channels and with Python 3.12. I have a ping mechanism to check if my users are still connected to my application where at a fixed time interval the ...
Pedro Silva's user avatar
0 votes
0 answers
15 views

Varying the arrowsize proportional to the linewidth in streamplots (matplotlib: 3.5.1)

I have fluid flow data, that has some vortices that decay in strength with distance in one direction. An easy example of this is below. # model flow field x = np.linspace(0, 2 * np.pi, 100) y = np....
vercors's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
147367