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 #293845 Initial revision 1 day 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)
1 day ago
Edit Post #293844 Initial revision 1 day 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)
1 day ago
Edit Post #293830 Post edited:
reddit shitware removed my post, so reposting
1 day ago
Comment Post #293830 @Alexei thanks I'll repost them tomorrow
(more)
3 days ago
Edit Post #293830 Post edited:
3 days ago
Edit Post #293830 Post edited:
3 days ago
Edit Post #293830 Post edited:
3 days ago
Edit Post #293830 Initial revision 3 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)
3 days ago
Edit Post #293824 Initial revision 5 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)
5 days ago
Edit Post #293792 Post edited:
5 days ago
Edit Post #293814 Post edited:
5 days ago
Edit Post #293814 Post edited:
5 days ago
Edit Post #293814 Post edited:
5 days ago
Edit Post #293814 Post edited:
5 days ago
Edit Post #293814 Post edited:
5 days ago
Edit Post #293815 Initial revision 6 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)
6 days ago
Edit Post #293814 Post edited:
6 days ago
Edit Post #293814 Initial revision 6 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)
6 days ago
Edit Post #293804 Post edited:
7 days ago
Edit Post #293804 Post edited:
7 days ago
Edit Post #293804 Post edited:
7 days ago
Edit Post #293804 Initial revision 7 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)
7 days ago
Edit Post #293792 Post edited:
9 days ago
Edit Post #293792 Post edited:
9 days ago
Edit Post #293792 Initial revision 9 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)
9 days ago
Edit Post #293790 Post edited:
9 days ago
Edit Post #293790 Initial revision 9 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)
9 days ago
Edit Post #293731 Post edited:
14 days ago
Edit Post #293731 Initial revision 14 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)
14 days ago
Edit Post #293664 Post edited:
21 days ago
Edit Post #293664 Post edited:
22 days ago
Edit Post #293664 Initial revision 22 days ago
Question When I write and run a prompt in Cursor IDE, what's passed in the context to the model (GPT/Claude/etc.)?
When I write and execute a prompt in Cursor IDE, what specific information is included in the context that gets sent to the underlying language model (such as GPT or Claude)? E.g., does it include previous messages, file contents, or other contextual data from the IDE? Imagealttext Crossposts: ...
(more)
22 days ago
Edit Post #293654 Initial revision 23 days ago
Question How can I automatically delete any deployment of a fine-tuned OpenAI model on Azure that hasn't been used in the past x hours?
How can I automatically delete any deployment of a fine-tuned OpenAI model on Azure that hasn't been used in the past x hours? I am aware of 15-day timeout. However, this is too long for me, as this represents a cost of. 15 days 24 hours/day 2 USD/hour = 720 USD, and I have often several fine-tu...
(more)
23 days ago
Edit Post #293653 Initial revision 23 days ago
Question How can I automatically delete any deployment of a fine-tuned OpenAI model on Azure that hasn't been used in the past x hours?
How can I automatically delete any deployment of a fine-tuned OpenAI model on Azure that hasn't been used in the past x hours? I am aware of 15-day timeout. However, this is too long for me, as this represents a cost of. 15 days 24 hours/day 2 USD/hour = 720 USD, and I have often several fine-tu...
(more)
23 days ago
Edit Post #293641 Initial revision 25 days ago
Answer A: How can I autocomplete variable names in prompts in Cursor?
It is currently not possible to autocomplete variable names in prompts in Cursor (source).
(more)
25 days ago
Edit Post #293640 Post edited:
25 days ago