Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce9f6b6

Browse files
committed
add plan
1 parent47c0e23 commitce9f6b6

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

‎.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎02.ChatWithGemma7b /gemmachat.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# pip install accelerate
21
fromtransformersimportAutoTokenizer,AutoModelForCausalLM
32

43
tokenizer=AutoTokenizer.from_pretrained("google/gemma-7b-it")
5-
model=AutoModelForCausalLM.from_pretrained("google/gemma-7b-it",device_map="auto")
4+
model=AutoModelForCausalLM.from_pretrained("google/gemma-7b-it")
65

76
input_text="Write me a poem about Machine Learning."
8-
input_ids=tokenizer(input_text,return_tensors="pt").to("cuda")
7+
input_ids=tokenizer(input_text,return_tensors="pt")
98

109
outputs=model.generate(**input_ids)
1110
print(tokenizer.decode(outputs[0]))

‎README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
11
#FlyPythonLLM
2-
Code of FlyPython Newsletter
2+
3+
Code of[FlyPython Newsletter](https://blog.flypython.com/)
4+
5+
6+
##free content
7+
1. GPTChat
8+
2. ChatWithGemma7b
9+
3. GPTs Action (1)
10+
4. GPTs Action (2)
11+
5. LangChain(1)
12+
6. LangChain(2)
13+
14+
15+
16+
17+
##paid content
18+
1. MoneyPrinter
19+
2. mindgraph
20+
3. metavoice

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp