Nigel Zhang
Nigel Zhang
my app is base on `sinatra` framework in app.rb `ZipkinTracer::TraceClient.local_component_span` that is ok, but not working inside the `lib` folder Can provider a method like this? ``` ruby def get_repositories(_request,...
output 那里没有 replace 的话,`print(tokenizer.decode(s))` 完整是这样的: ```bash Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: 中国的首都是哪里?并且做个300字介绍,包括一道特色菜和一个景点。 ### Response: ```
按上述就可以了。 我看看 GenerationConfig 的文档去。
> @shuiiiiiimu 你好,可以给一下你的tansformer和tokenizer的版本吗 !pip install git+https://github.com/huggingface/transformers.git !pip install git+https://github.com/huggingface/peft.git !pip install sentencepiece 我昨天安装的。最新分支上的代码。
> @shuiiiiiimu 好的,谢谢,我发现按照generate的参数用temperature=0.7, top_p=0.95, do_sample=True, num_beams=1, eos_token_id = tokenizer.eos_token_id,还是只有 我按照上述的参数设置之后,就能生成了。但是多跑几次之后。生成空白的次数居多(就是,同样的参数,重复跑,有时候有内容输出,有时候没有)。 不知道为啥。
我就参考这个项目搭了一个 demo ``` #extends("page/layout/application.vm") --> #extends("/page/layout/application.vm") #widget("widget/bottom_banner.vm") --> #widget("/widget/bottom_banner.vm") 但是改成后面的绝对路径就可以读到了。 ``` 这时候可以正常渲染模版了 但是 console 报错如下。是不是就代表了 config/map.json 读取不到呢? ``` shell java.lang.NullPointerException at com.baidu.fis.util.MapCache.getNode(MapCache.java:157) at com.baidu.fis.util.MapCache.getNode(MapCache.java:166) at com.baidu.fis.util.Resource.getUri(Resource.java:477) at com.baidu.fis.util.Resource.getUri(Resource.java:473) at com.baidu.fis.velocity.event.IncludeFisSource.includeEvent(IncludeFisSource.java:23)...