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 #295083 | Initial revision | — | 10 months ago |
| Question | — |
How can I run Flux2 inference on 2 GPUs? I try to run Flux2 inference on 2 GPUs as follows: ```python import torch from diffusers import Flux2Pipeline from accelerate import PartialState import argparse from pathlib import Path def main(): parser = argparse.ArgumentParser(description='Generate images using FLUX.2-dev wit... (more) |
— | 10 months ago |
| Edit | Post #294754 | Initial revision | — | 11 months ago |
| Question | — |
How can I serve OpenGVLab/InternVL3-1B with vLLM? Getting "ValueError: Failed to apply InternVLProcessor" error upon initialization How can I serve OpenGVLab/InternVL3-1B with vLLM? I tried running: ``` conda create -y -n vllm312 python=3.12 conda activate vllm312 pip install vllm vllm serve OpenGVLab/InternVL3-1B --trustremotecode ``` but I get get the "ValueError: Failed to apply InternVLProcessor" error upon... (more) |
— | 11 months ago |
| Edit | Post #294753 |
Post edited: |
— | 11 months ago |
| Edit | Post #294753 |
Post edited: |
— | 11 months ago |
| Edit | Post #294753 | Initial revision | — | 11 months ago |
| Question | — |
How can I run the inference on the HunyuanImage-3.0 model? I follow the instructions on https://github.com/Tencent-Hunyuan/HunyuanImage-3.0: ``` conda create -y -n hunyuan312 python=3.12 conda activate hunyuan312 1. First install PyTorch (CUDA 12.8 Version) pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://downlo... (more) |
— | 11 months ago |
| Edit | Post #294732 | Initial revision | — | 11 months ago |
| Answer | — |
A: How can I update the capacity of a finetuned GPT model on Azure using Python? > How can I update the capacity of a finetuned GPT model on Azure using Python? The code wasn't working due to a bug on MSFT side. They fixed the bug last week, and as a result updating the capacity of a finetuned GPT model on Azure using Python is now working. (more) |
— | 11 months ago |
| Edit | Post #294669 | Initial revision | — | 12 months ago |
| Answer | — |
A: How can I use web search with GPT on Azure using Python? Based on learn.microsoft.com (mirror 1; mirror 2), web search with GPT on Azure using Python is not supported yet: > Not currently supported: > > - The web search tool > > - Image generation using multi-turn editing and streaming - coming soon > > - Images can't be uploaded as a file... (more) |
— | 12 months ago |
| Edit | Post #294665 | Initial revision | — | 12 months ago |
| Question | — |
How can I use web search with GPT on Azure using Python? I want to use web search when calling GPT on Azure using Python. I can call GPT on Azure using Python as follows: ``` import os from openai import AzureOpenAI endpoint = "https://somewhere.openai.azure.com/" modelname = "gpt5" deployment = "gpt5" subscriptionkey = "" apiversion =... (more) |
— | 12 months ago |
| Edit | Post #294659 |
Post edited: |
— | 12 months ago |
| Edit | Post #294659 | Initial revision | — | 12 months ago |
| Question | — |
How can I update the capacity of a finetuned GPT model on Azure using Python? I want to update the capacity of a finetuned GPT model on Azure. How can I do so in Python? The following code used to work a few months ago (it used to take a few seconds to update the capacity) but now it does not update the capacity anymore. No idea why. It requires a token generated via `a... (more) |
— | 12 months ago |
| Edit | Post #293893 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293893 | Initial revision | — | over 1 year 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 ima... (more) |
— | over 1 year ago |
| Edit | Post #293882 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
| Edit | Post #293880 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293880 | Initial revision | — | over 1 year 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 ... (more) |
— | over 1 year ago |
| Edit | Post #293845 | Initial revision | — | over 1 year 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: Imagealtt... (more) |
— | over 1 year ago |
| Edit | Post #293844 | Initial revision | — | over 1 year 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. W... (more) |
— | over 1 year ago |
| Edit | Post #293830 |
Post edited: reddit shitware removed my post, so reposting |
— | over 1 year ago |
| Comment | Post #293830 |
@Alexei thanks I'll repost them tomorrow (more) |
— | over 1 year ago |
| Edit | Post #293830 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293830 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293830 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293830 | Initial revision | — | over 1 year 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 compari... (more) |
— | over 1 year ago |
| Edit | Post #293824 | Initial revision | — | over 1 year 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... (more) |
— | over 1 year ago |
| Edit | Post #293792 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293814 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293814 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293814 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293814 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293814 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293815 | Initial revision | — | over 1 year 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 s... (more) |
— | over 1 year ago |
| Edit | Post #293814 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293814 | Initial revision | — | over 1 year 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 hfm... (more) |
— | over 1 year ago |
| Edit | Post #293804 |
Post edited: |
— | over 1 year ago |
