(num: int)
| 10 | |
| 11 | |
| 12 | def get_dummy_experience(num: int) -> List[Experience]: |
| 13 | return [ |
| 14 | Experience( |
| 15 | eid=EID(suffix=uuid.uuid4().hex[:6]), |
| 16 | tokens=torch.zeros(5), |
| 17 | prompt_length=2, |
| 18 | info={ |
| 19 | "model_version": 0, |
| 20 | }, |
| 21 | ) |
| 22 | for _ in range(num) |
| 23 | ] |
| 24 | |
| 25 | |
| 26 | db_path = os.path.join(os.path.dirname(__file__), "test_recorder.db") |
no test coverage detected