add plan
This commit is contained in:
5
.idea/.gitignore
generated
vendored
Normal file
5
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# 默认忽略的文件
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# GitHub Copilot persisted chat sessions
|
||||||
|
/copilot/chatSessions
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
# pip install accelerate
|
|
||||||
from transformers import AutoTokenizer, AutoModelForCausalLM
|
from transformers import AutoTokenizer, AutoModelForCausalLM
|
||||||
|
|
||||||
tokenizer = AutoTokenizer.from_pretrained("google/gemma-7b-it")
|
tokenizer = AutoTokenizer.from_pretrained("google/gemma-7b-it")
|
||||||
model = AutoModelForCausalLM.from_pretrained("google/gemma-7b-it", device_map="auto")
|
model = AutoModelForCausalLM.from_pretrained("google/gemma-7b-it")
|
||||||
|
|
||||||
input_text = "Write me a poem about Machine Learning."
|
input_text = "Write me a poem about Machine Learning."
|
||||||
input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
|
input_ids = tokenizer(input_text, return_tensors="pt")
|
||||||
|
|
||||||
outputs = model.generate(**input_ids)
|
outputs = model.generate(**input_ids)
|
||||||
print(tokenizer.decode(outputs[0]))
|
print(tokenizer.decode(outputs[0]))
|
||||||
|
|||||||
20
README.md
20
README.md
@@ -1,2 +1,20 @@
|
|||||||
# FlyPythonLLM
|
# FlyPythonLLM
|
||||||
Code of FlyPython Newsletter
|
|
||||||
|
Code of [FlyPython Newsletter](https://blog.flypython.com/)
|
||||||
|
|
||||||
|
|
||||||
|
## free content
|
||||||
|
1. GPTChat
|
||||||
|
2. ChatWithGemma7b
|
||||||
|
3. GPTs Action (1)
|
||||||
|
4. GPTs Action (2)
|
||||||
|
5. LangChain(1)
|
||||||
|
6. LangChain(2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## paid content
|
||||||
|
1. MoneyPrinter
|
||||||
|
2. mindgraph
|
||||||
|
3. metavoice
|
||||||
Reference in New Issue
Block a user