shengtaovvv

Results 4 issues of shengtaovvv

请问大佬,我像这样启动一个爬虫之后,当出现“爬虫不自动结束, 等待下一轮任务...”之后,能否手动添加任务,该如何添加呢 spider = test_spider.TestSpider(redis_key=redis_key, thread_count=2, delete_keys="feapder:test_spider__0*", auto_stop_when_spider_done=False) spider.start()

请问模型预测文本输出的各分类概率值是如何计算的,我想要对结果的各个分类概率值进行0-1归一化处理,但是不知道这个该如何转化 ![image](https://user-images.githubusercontent.com/39122060/168044517-e1cc4506-4055-4c45-9b00-e9e34d489dc9.png)

请问一下,我已经训练好了两个模型,现在想用这两个模型做预测,在加载第一个模型的时候没问题,但是加载完成第一个模型之后,再去加载第二个模型的时候,就会报错,提示的错误是受到第一个模型参数的影响,请问这个应该怎么初始化torch才能让两个模型加载的时候不受相互影响嫩 class Model(nn.Module): def __init__(self, config): super(Model, self).__init__() self.bert = BertModel.from_pretrained(config.bert_path) for param in self.bert.parameters(): param.requires_grad = True self.fc = nn.Linear(config.hidden_size, config.num_classes) def forward(self, x): context = x[0] # 输入的句子...

### Required prerequisites - [X] I have read the documentation . - [X] I have searched the [Issue Tracker](https://github.com/baichuan-inc/baichuan-7B/issues) and [Discussions](https://github.com/baichuan-inc/baichuan-7B/discussions) that this hasn't already been reported. (+1 or comment...

question