Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for Franck Dernoncourt‭

Type On... Excerpt Status Date
Edit Post #293893 Post edited:
6 days ago
Edit Post #293893 Initial revision 6 days ago
Question How can I save a plot in a file in PyCharm without changing the code?
How can I save a plot in a file in PyCharm without changing the code? I used `plt.show()`, so that the plot shows like this: Imagealttext But how can I save a plot in a file without changing the code? I don't see any save option in the contextual menu after right clicking on the image: ...
(more)
6 days ago
Edit Post #293882 Initial revision 9 days ago
Answer A: Import onnxruntime then load_dataset "causes ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found": why + how to fix?
Inversing the import order works: ``` from datasets import loaddataset import onnxruntime as ort ```
(more)
9 days ago
Edit Post #293880 Post edited:
10 days ago
Edit Post #293880 Initial revision 10 days ago
Question Import onnxruntime then load_dataset "causes ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found": why + how to fix?
Running ```python import onnxruntime as ort from datasets import loaddataset ``` yields the error: ``` (env-312) dernoncourt@pc:/test$ python SE--testimportpb.py Traceback (most recent call last): File "/home/dernoncourt/test/SE--testimportpb.py", line 2, in from datasets impo...
(more)
10 days ago
Edit Post #293845 Initial revision 17 days ago
Answer A: Can't run a Python file in PyCharm: why?
I closed the window containing the PyCharm project and reopened the project: it worked. I have no idea why it didn't work before reopening the PyCharm project. Very strange: I don't see what could cause "Run" to disappear from the option in the run/debug config window. It's back now: Imagealttext ...
(more)
17 days ago
Edit Post #293844 Initial revision 17 days ago
Question Can't run a Python file in PyCharm: why?
I can't run a Python file in PyCharm: why? The run icon is greyed out: Imagealttext I went to Run → Edit Configurations… to make sure the correct Python interpreter is selected. Debug, coverage, and profile are fine but I don't see run: Imagealttext Strangely, only run won't run. What'...
(more)
17 days ago
Edit Post #293830 Post edited:
reddit shitware removed my post, so reposting
17 days ago
Comment Post #293830 @Alexei thanks I'll repost them tomorrow
(more)
18 days ago
Edit Post #293830 Post edited:
19 days ago
Edit Post #293830 Post edited:
19 days ago
Edit Post #293830 Post edited:
19 days ago
Edit Post #293830 Initial revision 19 days ago
Question Why would the tokenizer for encoder-decoder model for machine translation use bos_token_id == eos_token_id? How does it know when a sequence ends?
I see on this PyTorch model `Helsinki-NLP/opus-mt-fr-en` (HuggingFace), which is an encoder-decoder model for machine translation: ``` "bostokenid": 0, "eostokenid": 0, ``` in its `config.json`. Why set bostokenid == eostokenid? How does it know when a sequence ends? By comparison,...
(more)
19 days ago
Edit Post #293824 Initial revision 21 days ago
Answer A: "This model is not available on the selected Azure OpenAI Service resource." error, but I think it is. Why did I miss?
I've given up on that Azure UI, here's the Python code to do it. It requires a token generated via `az account get-access-token`. ```python import json import requests newcapacity = 3 # Change this number to your desired capacity. 3 means 3000 tokens/minute. Authentication and resource ide...
(more)
21 days ago
Edit Post #293792 Post edited:
21 days ago
Edit Post #293814 Post edited:
21 days ago
Edit Post #293814 Post edited:
21 days ago
Edit Post #293814 Post edited:
21 days ago
Edit Post #293814 Post edited:
21 days ago
Edit Post #293814 Post edited:
21 days ago
Edit Post #293815 Initial revision 22 days ago
Answer A: When I write and run a prompt in Cursor IDE, what's passed in the context to the model (GPT/Claude/etc.)?
https://gist.github.com/sshh12/25ad2e40529b269a88b80e7cf1c38084 extracted the entire prompt for Cursor IDE: ``` You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE. You are pair programming with a USER to solve...
(more)
22 days ago
Edit Post #293814 Post edited:
22 days ago
Edit Post #293814 Initial revision 22 days ago
Question How can I export an encoder-decoder PyTorch model into a single ONNX file?
I converted the PyTorch model `Helsinki-NLP/opus-mt-fr-en` (HuggingFace), which is an encoder-decoder model for machine translation, to ONNX using this script: ```python import os from optimum.onnxruntime import ORTModelForSeq2SeqLM from transformers import AutoTokenizer, AutoConfig hfmodel...
(more)
22 days ago
Edit Post #293804 Post edited:
23 days ago
Edit Post #293804 Post edited:
23 days ago
Edit Post #293804 Post edited:
23 days ago
Edit Post #293804 Initial revision 23 days ago
Answer A: What to do with GenAI tags?
> None which have anything to do with programming I disagree, e.g.: - a program may be about building an LLM. - a program may call an LLM. - a program could be partly be done with an LLM. so the tags are relevant in my opinion. > tags like "open-ai" should probably be renamed "open-ai-...
(more)
23 days ago
Edit Post #293792 Post edited:
24 days ago
Edit Post #293792 Post edited:
24 days ago
Edit Post #293792 Initial revision 24 days ago
Question "This model is not available on the selected Azure OpenAI Service resource." error, but I think it is. Why did I miss?
I deployed a finetuned GPT 4o mini model on Azure, region `northcentralus`. I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate): > This model is not available on the selected Azure OpenAI Service resource. Learn more about model availability. ...
(more)
24 days ago
Edit Post #293790 Post edited:
25 days ago
Edit Post #293790 Initial revision 25 days ago
Question How can I deploy a fine-tuned GPT model in Azure via Python without using a token (e.g., using an endpoint key instead)?
I follow Azure's tutorial on fine-tuning GPT. I follow the deployment phase. Code: ``` Deploy fine-tuned model import json import requests token = '[redacted]' subscription = '[redacted]' resourcegroup = "[redacted]" resourcename = "[redacted]" modeldeploymentname = "gpt-4o-mini-202...
(more)
25 days ago
Edit Post #293731 Post edited:
30 days ago
Edit Post #293731 Initial revision 30 days ago
Question "google.auth.exceptions.RefreshError: Reauthentication is needed.": How can I extend the authentication time?
I use Gemini via CLI via Google Vertex AI. I keep getting > google.auth.exceptions.RefreshError: Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate. every 1 or 2 hours. How can I extend the authentication time? Crossposts: - https://datasc...
(more)
30 days ago
Edit Post #293664 Post edited:
about 1 month ago
Edit Post #293664 Post edited:
about 1 month ago
Edit Post #293664 Initial revision about 1 month ago