# How do I have two different run files to log to the same sweep?

**URL:** <https://community.wandb.ai/t/how-do-i-have-two-different-run-files-to-log-to-the-same-sweep/4150>\
**Category:** W&B Help\
**Tags:** sweeps\
**Created:** [March 29, 2023, 5:18pm UTC](https://community.wandb.ai/t/how-do-i-have-two-different-run-files-to-log-to-the-same-sweep/4150 "2023-03-29T17:18:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brando](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/brando/32/199_2.png) [@brando](https://community.wandb.ai/u/brando)\
**Post date:** [March 29, 2023, 5:18pm UTC](https://community.wandb.ai/t/how-do-i-have-two-different-run-files-to-log-to-the-same-sweep/4150/1 "2023-03-29T17:18:55Z")

</div>

I noticed that the config file can have the program to run. I want all my runs for two different methods (and therefore use two different files and want to avoid refactoring). Can’t the agent take the file path? (I know it can’t) Or some alternative?

```auto
export SWEEPID=$(wandb sweep config.yaml)
NUM=10
wandb agent train_sl.py --count $NUM $SWEEPID
wandb agent train_maml.py --count $NUM $SWEEPID

```

cross: [wandb - 0 Vote How do I have two different run files to log to the same sweep? - Stack Overflow](https://stackoverflow.com/questions/75880299/0-vote-how-do-i-have-two-different-run-files-to-log-to-the-same-sweep)

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [April 10, 2023, 5:56pm UTC](https://community.wandb.ai/t/how-do-i-have-two-different-run-files-to-log-to-the-same-sweep/4150/2 "2023-04-10T17:56:56Z")

</div>

Hi @brando, thank you for writing in with your question. When generating a sweep via config file, the sweep controller only considers a single method and program. There isn’t currently a method around this but we are working on expanding more controls over sweeps and flexibility of initializing and calling them. I’ve added you to list of users requsting this and will keep you updated once it’s been implemented. Cheers!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [June 9, 2023, 5:57pm UTC](https://community.wandb.ai/t/how-do-i-have-two-different-run-files-to-log-to-the-same-sweep/4150/3 "2023-06-09T17:57:26Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
